Share via


Matrix.Translation(Single,Single,Single) Method (Microsoft.DirectX)

Builds a matrix using specified offsets.

Definition

Visual Basic Public Shared Function Translation( _
    ByVal x As Single, _
    ByVal y As Single, _
    ByVal z As Single _
) As Matrix
C# public static Matrix Translation(
    float x,
    float y,
    float z
);
C++ public:
static Matrix Translation(
    float x,
    float y,
    float z
);
JScript public static function Translation(
    x : float,
    y : float,
    z : float
) : Matrix;

Parameters

x System.Single
X-coordinate offset.
y System.Single
Y-coordinate offset.
z System.Single
Z-coordinate offset.

Return Value

Microsoft.DirectX.Matrix
A Matrix structure that contains a translated transformation matrix.