[]
Creates a translation matrix from the specified 3-dimensional vector.
public static void TranslationRef(out Matrix4x4 result, ref Vector3 value)
Type | Name | Description |
---|---|---|
Matrix4x4 | result | When the method completes, contains the created translation matrix. |
Vector3 | value | The amount to translate in each axis. |
Creates a translation matrix using the specified offsets.
public static void TranslationRef(out Matrix4x4 result, float x, float y, float z)
Type | Name | Description |
---|---|---|
Matrix4x4 | result | When the method completes, contains the created translation matrix. |
float | x | X-coordinate offset. |
float | y | Y-coordinate offset. |
float | z | Z-coordinate offset. |