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