[]Function rusty_engine::prelude::glm::rotate

pub fn rotate<N>(
    m: &Matrix<N, U4, U4, <DefaultAllocator as Allocator<N, U4, U4>>::Buffer>,
    angle: N,
    axis: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Matrix<N, U4, U4, <DefaultAllocator as Allocator<N, U4, U4>>::Buffer> where
    N: RealField

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.

See also: