ViewportExtensions.Project Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Projects a 3D vector from object space into screen space.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)

Syntax

'Declaration
Public Shared Function Project ( _
    viewport As Viewport, _
    source As Vector3, _
    projection As Matrix, _
    view As Matrix, _
    world As Matrix _
) As Vector3
public static Vector3 Project(
    Viewport viewport,
    Vector3 source,
    Matrix projection,
    Matrix view,
    Matrix world
)

Parameters

Return Value

Type: Microsoft.Xna.Framework.Vector3
The vector in screen space.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.