[]
Creates a matrix that rotates around the z-axis.
public static void RotationZRef(out Matrix4x4 result, float radians)
Type | Name | Description |
---|---|---|
Matrix4x4 | result | When the method completes, contains the created rotation matrix. |
float | radians | Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. |
Creates a matrix for rotating points around the Z axis from a center point.
public static void RotationZRef(out Matrix4x4 result, float radians, ref Vector3 centerPoint)
Type | Name | Description |
---|---|---|
Matrix4x4 | result | When the method completes, contains the created rotation matrix. |
float | radians | The amount, in radians, by which to rotate around the Z-axis. |
Vector3 | centerPoint | The center point. |