MatrixStack.Translate Method

Language:

Determines the product of the current matrix and the computed translation matrix by the given factors (x, y, and z).

Definition

Visual Basic Public Sub Translate( _
    ByVal trans As Vector3 _
)
C# public void Translate(
    Vector3 trans
);
C++ public:
void Translate(
    Vector3 trans
);
JScript public function Translate(
    trans : Vector3
);

Parameters

trans Microsoft.DirectX.Vector3
A Vector3 object that represents the translation factors to use in the calculation.

Remarks

This method right-multiplies the current matrix by the computed translation matrix. The transformation is around the current world origin.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also


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