XNA Game Studio 3.0
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

C#
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

Reference

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune
Tags :


Page view tracker