Beispiel #1
0
        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));
        }
Beispiel #2
0
 public override string ToString()
 {
     return(_pos.ToString());
 }