0 out of 1 rated this helpful - Rate this topic

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)

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.
Xbox 360, Windows XP SP2, Windows Vista, Zune
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ