Exemplo n.º 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));
        }
Exemplo n.º 2
0
Arquivo: Node.cs Projeto: Omybot/GoBot
 public override string ToString()
 {
     return(_pos.ToString());
 }