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); }
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); }