Microsoft DirectX 9.0 SDK Update (October 2004)

Vector3.Project Method

Language:

Note: This documentation is preliminary and is subject to change.

Projects a vector from object space into screen space.

Definition

Visual Basic .NET Public Shared Function Project( _
    ByVal v As Vector3, _
    ByVal viewport As Object, _
    ByVal projection As Matrix, _
    ByVal view As Matrix, _
    ByVal world As Matrix _
) As Vector3
C# public static Vector3 Project(
    Vector3 v,
    object viewport,
    Matrix projection,
    Matrix view,
    Matrix world
);
Managed C++ public: static Vector3 Project(
    Vector3 v,
    Object *viewport,
    Matrix projection,
    Matrix view,
    Matrix world
);
JScript .NET public static function Project(
    v : Vector3,
    viewport : Object,
    projection : Matrix,
    view : Matrix,
    world : Matrix
) : Vector3;

Parameters

v Microsoft.DirectX.Vector3. The source Vector3 structure.
viewport System.Object. An Object Leave Site structure that represents the viewport. Only Viewport structures are valid for this parameter.
projection Microsoft.DirectX.Matrix. A Matrix structure that represents the projection matrix.
view Microsoft.DirectX.Matrix. A Matrix structure that represents the view matrix.
world Microsoft.DirectX.Matrix. A Matrix structure that represents the world matrix.

Return Value

Microsoft.DirectX.Vector3 . A Vector3 structure that is the vector projected from object space into screen space.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center