Function nalgebra_glm::rotate [−][src]
pub fn rotate<T: RealField>(m: &TMat4<T>, angle: T, axis: &TVec3<T>) -> TMat4<T>
Expand description
Builds a rotation 4 * 4 matrix created from an axis vector and an angle and right-multiply it to m
.
Parameters:
m
− Input matrix multiplied by this rotation matrix.angle
− Rotation angle expressed in radians.axis
− Rotation axis, recommended to be normalized.