Rotate

Matrix4.Rotate method (1 of 2)

Create a rotation matrix by rotation angle and axis

public static Matrix4 Rotate(double angle, Vector3 axis)
Parameter Type Description
angle Double Rotate angle in radian
axis Vector3 Rotation axis

See Also


Matrix4.Rotate method (2 of 2)

Create a rotation matrix from a quaternion

public static Matrix4 Rotate(Quaternion q)
Parameter Type Description
q Quaternion Rotation quaternion

See Also