MatrixStack.TranslateLocal(Vector3) Method (Microsoft.DirectX)

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

Definition

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

Parameters

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

Remarks

This method left-multiplies the current matrix by the computed translation matrix (transformation is around the local origin of the object).

Exceptions

InvalidCallException

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

See Also