public Vector2 DesktopToLocal(Vector2 desktopPosition) { return(SDToLime.Convert( renderControl.PointToClient(LimeToSD.ConvertToPoint(desktopPosition, PixelScale)), PixelScale )); }
public Vector2 LocalToDesktop(Vector2 localPosition) { return(SDToLime.Convert( glControl.PointToScreen(LimeToSD.ConvertToPoint(localPosition, PixelScale)), PixelScale )); }
public Point WorldToWindow(Vector2 wp) { var sp = LimeToSD.ConvertToPoint(wp, PixelScale); return(new Point(sp.X + glControl.Left, sp.Y + glControl.Top)); }
public Vector2 WorldToWindow(Vector2 wp) { var sp = LimeToSD.ConvertToPoint(wp, PixelScale); return(new Vector2(sp.X + renderControl.Left, sp.Y + renderControl.Top)); }