![]() |
![]() |
![]() |
MatrixStack.TranslateLocal Method |
Language: |
Determines the product of the computed translation matrix by the given factors (x, y, and z) and the current matrix.
Visual Basic Public Sub TranslateLocal( _
ByVal x As Single, _
ByVal y As Single, _
ByVal z As Single _
)C# public void TranslateLocal(
float x,
float y,
float z
);C++ public:
void TranslateLocal(
float x,
float y,
float z
);JScript public function TranslateLocal(
x : float,
y : float,
z : float
);
x System.Single
Floating-point value that represents the translation factor in the x-direction.y System.Single
Floating-point value that represents the translation factor in the y-direction.z System.Single
Floating-point value that represents the translation factor in the z-direction.
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.
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