Share via


UnsafeNativeMethods.Matrix.Translation(Matrix,Vector3) Method (Microsoft.DirectX)

Builds a matrix using specified offsets.

Note: For programming in Microsoft Visual Basic .NET or Microsoft JScript .NET, use the equivalent method in the Microsoft.DirectX structures.

Definition

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

Parameters

pOut Microsoft.DirectX.Matrix
A Matrix structure that contains a translated transformation matrix.
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.

Remarks

The return value for this method is the same value returned in the pOut parameter. This allows you to use the Translation method as a parameter for another method.

See Also