Viewport.Unproject Method
Projects a vector from screen space into object space.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public Vector3 Unproject (
Vector3 source,
Matrix projection,
Matrix view,
Matrix world
)
Parameters
- source
The vector to project. - projection
The projection matrix. - view
The view matrix. - world
The world matrix.
Return Value
The vector in object space.
See Also
Reference
Viewport Structure
Viewport Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista