[][src]Function nalgebra_glm::rotate

pub fn rotate<N: RealField>(m: &TMat4<N>, angle: N, axis: &TVec3<N>) -> TMat4<N>

Builds a rotation 4 * 4 matrix created from an axis vector and an angle and right-multiply it to m.


  • m − Input matrix multiplied by this rotation matrix.
  • angle − Rotation angle expressed in radians.
  • axis − Rotation axis, recommended to be normalized.

See also: