private static double GetDistanceFrom(IHasXY from, IHasXY to) { var a = from.X - to.X; var b = from.Y - to.Y; return(Math.Sqrt(a * a + b * b)); }
public StartingPosition(IHasXY other, Corner corner, int color) : this(other.X, other.Y, corner, color) { }
public Position(IHasXY other) { this.X = other.X; this.Y = other.Y; }