예제 #1
0
파일: Form1.cs 프로젝트: mnieznalska/mobmap
        private void Form1_MouseMove(object sender, MouseEventArgs e)
        {
            Coordinates.Coordinate projCoord = new MOBMAP.Coordinates.Coordinate(new Geometry.Point(e.X, e.Y), false);
            Vector3 position = new Vector3(0, 0, 0);

            position.Project(map.device.Viewport, map.device.Transform.Projection, map.device.Transform.View, map.device.Transform.World);
            position.X = e.X;
            position.Y = e.Y;
            position.Unproject(map.device.Viewport, map.device.Transform.Projection, map.device.Transform.View, map.device.Transform.World);
        }
예제 #2
0
파일: Form1.cs 프로젝트: mnieznalska/mobmap
 private void Form1_MouseMove(object sender, MouseEventArgs e)
 {
     Coordinates.Coordinate projCoord = new MOBMAP.Coordinates.Coordinate(new Geometry.Point(e.X,e.Y),false);
     Vector3 position = new Vector3(0,0,0);
     position.Project(map.device.Viewport, map.device.Transform.Projection, map.device.Transform.View, map.device.Transform.World);
     position.X = e.X;
     position.Y = e.Y;
     position.Unproject(map.device.Viewport, map.device.Transform.Projection, map.device.Transform.View, map.device.Transform.World);
 }