Method Translation
Translation(Single, Single, Single)
Creates a translation matrix using the specified offsets.
Declaration
public static Matrix Translation(float x, float y, float z)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x | X-coordinate offset. |
| System.Single | y | Y-coordinate offset. |
| System.Single | z | Z-coordinate offset. |
Returns
| Type | Description |
|---|---|
| Matrix | The created translation matrix. |
Translation(Vector3)
Creates a translation matrix using the specified offsets.
Declaration
public static Matrix Translation(Vector3 amount)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | amount | The offset for all three coordinate planes. |
Returns
| Type | Description |
|---|---|
| Matrix | The created translation matrix. |