Viewport.Project Method
Projects a 3D vector from object space into screen space.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public Vector3 Project (
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 screen space.
See Also
Tasks
How to: Draw a Sprite Over a Model
Reference
Viewport Structure
Viewport Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista