コード例 #1
0
ファイル: Atlas.cs プロジェクト: NynrahGhost/Decadence
 public int GetData(Vector2d32 position)
 {
     if (data[position._2].Length > position._1)
     {
         return(data[position._2][position._1]);
     }
     return(' ');
 }
コード例 #2
0
ファイル: Structures.cs プロジェクト: NynrahGhost/Decadence
 public double Distance(Vector2d32 vector)
 {
     return(Math.Sqrt((_1 - vector._1) * (_1 - vector._1) + (_2 - vector._2) * (_2 - vector._2)));
 }
コード例 #3
0
ファイル: Structures.cs プロジェクト: NynrahGhost/Decadence
 public static double Distance(Vector2d32 vector1, Vector2d32 vector2)
 {
     return(Math.Sqrt((vector1._1 - vector2._1) * (vector1._1 - vector2._1) + (vector1._2 - vector2._2) * (vector1._2 - vector2._2)));
 }
コード例 #4
0
 public TextureColoredSymbol(Atlas atlas, Vector2d32 start, Vector2d32 end, Atlas atlasColor, Vector2d32 startColor, Vector2d32 endColor) : base(atlas, start, end)
 {
     this.atlasColor = atlasColor;
     this.startColor = startColor;
     this.endColor   = endColor;
 }
コード例 #5
0
 public TextureBackground(Atlas atlas, Vector2d32 start, Vector2d32 end)
 {
     this.atlas = atlas;
     this.start = start;
     this.end   = end;
 }
コード例 #6
0
 public TextureSymbol(Atlas atlas, Vector2d32 start, Vector2d32 end)
 {
     this.atlas = atlas;
     this.start = start;
     this.end   = end;
 }
コード例 #7
0
ファイル: Atlas.cs プロジェクト: NynrahGhost/Decadence
 public int GetData(Vector2d32 position)
 {
     return(bitmap.GetPixel(position._1 >> 1 % bitmap.Width, position._2 % bitmap.Height).ToArgb());
 }
コード例 #8
0
ファイル: Atlas.cs プロジェクト: NynrahGhost/Decadence
 public int GetData(Vector2d32 position)
 {
     return(data[position._2, position._1]);
 }