Ejemplo n.º 1
0
 public Vector2 DesktopToLocal(Vector2 desktopPosition)
 {
     return(SDToLime.Convert(
                renderControl.PointToClient(LimeToSD.ConvertToPoint(desktopPosition, PixelScale)),
                PixelScale
                ));
 }
Ejemplo n.º 2
0
 public Vector2 LocalToDesktop(Vector2 localPosition)
 {
     return(SDToLime.Convert(
                glControl.PointToScreen(LimeToSD.ConvertToPoint(localPosition, PixelScale)),
                PixelScale
                ));
 }
Ejemplo n.º 3
0
        public Point WorldToWindow(Vector2 wp)
        {
            var sp = LimeToSD.ConvertToPoint(wp, PixelScale);

            return(new Point(sp.X + glControl.Left, sp.Y + glControl.Top));
        }
Ejemplo n.º 4
0
        public Vector2 WorldToWindow(Vector2 wp)
        {
            var sp = LimeToSD.ConvertToPoint(wp, PixelScale);

            return(new Vector2(sp.X + renderControl.Left, sp.Y + renderControl.Top));
        }