Beispiel #1
0
 public int GetData(Vector2d32 position)
 {
     if (data[position._2].Length > position._1)
     {
         return(data[position._2][position._1]);
     }
     return(' ');
 }
Beispiel #2
0
 public double Distance(Vector2d32 vector)
 {
     return(Math.Sqrt((_1 - vector._1) * (_1 - vector._1) + (_2 - vector._2) * (_2 - vector._2)));
 }
Beispiel #3
0
 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)));
 }
Beispiel #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;
 }
Beispiel #5
0
 public TextureBackground(Atlas atlas, Vector2d32 start, Vector2d32 end)
 {
     this.atlas = atlas;
     this.start = start;
     this.end   = end;
 }
Beispiel #6
0
 public TextureSymbol(Atlas atlas, Vector2d32 start, Vector2d32 end)
 {
     this.atlas = atlas;
     this.start = start;
     this.end   = end;
 }
Beispiel #7
0
 public int GetData(Vector2d32 position)
 {
     return(bitmap.GetPixel(position._1 >> 1 % bitmap.Width, position._2 % bitmap.Height).ToArgb());
 }
Beispiel #8
0
 public int GetData(Vector2d32 position)
 {
     return(data[position._2, position._1]);
 }