예제 #1
0
 public Vector2 DesktopToLocal(Vector2 desktopPosition)
 {
     return(SDToLime.Convert(
                renderControl.PointToClient(LimeToSD.ConvertToPoint(desktopPosition, PixelScale)),
                PixelScale
                ));
 }
예제 #2
0
 public Vector2 LocalToDesktop(Vector2 localPosition)
 {
     return(SDToLime.Convert(
                glControl.PointToScreen(LimeToSD.ConvertToPoint(localPosition, PixelScale)),
                PixelScale
                ));
 }
예제 #3
0
파일: Window.Win.cs 프로젝트: klenin/Citrus
        public Point WorldToWindow(Vector2 wp)
        {
            var sp = LimeToSD.ConvertToPoint(wp, PixelScale);

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

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