Matrix.Translation Method

Language:

Builds a matrix using specified offsets.

Definition

Visual Basic Public Shared Function Translation( _
    ByVal v As Vector3 _
) As Matrix
C# public static Matrix Translation(
    Vector3 v
);
C++ public:
static Matrix Translation(
    Vector3 v
);
JScript public static function Translation(
    v : Vector3
) : Matrix;

Parameters

v Microsoft.DirectX.Vector3
A Vector3 structure that contains the x-coordinate, y-coordinate, and z-coordinate offsets.

Return Value

Microsoft.DirectX.Matrix
A Matrix structure that contains a translated transformation matrix.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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