private WorldScale CreateWorldScale(double mmPerPixel, RealPoint center) { Console.WriteLine(center.ToString()); int x = (int)(picWorld.Width / 2 - center.X / mmPerPixel); int y = (int)(picWorld.Height / 2 - center.Y / mmPerPixel); return(new WorldScale(mmPerPixel, x, y)); }
public override string ToString() { return(_pos.ToString()); }