MatrixStack.Translate(Single,Single,Single) Method (Microsoft.DirectX)
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 x As Single, _
ByVal y As Single, _
ByVal z As Single _
)C# public void Translate(
float x,
float y,
float z
);C++ public:
void Translate(
float x,
float y,
float z
);JScript public function Translate(
x : float,
y : float,
z : float
);
Parameters
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.
Remarks
This method right-multiplies the current matrix by the computed translation matrix. The transformation is around the current world origin.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.
See Also