[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.RotationZ

RotationZ Method

RotationZ(float)

Creates a matrix that rotates around the z-axis.

Declaration
public static Matrix4x4 RotationZ(float radians)
Public Shared Function RotationZ(radians As Single) As Matrix4x4
Parameters
Type Name Description
float radians

Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

Returns
Type Description
Matrix4x4

The created rotation matrix.

RotationZ(float, Vector3)

Creates a matrix that rotates around the z-axis.

Declaration
public static Matrix4x4 RotationZ(float radians, Vector3 centerPoint)
Public Shared Function RotationZ(radians As Single, centerPoint As Vector3) As Matrix4x4
Parameters
Type Name Description
float radians

Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

Vector3 centerPoint

The center point.

Returns
Type Description
Matrix4x4

The created rotation matrix.