[]Function rusty_engine::prelude::glm::rotate_x

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

Builds a rotation 4 * 4 matrix around the X axis and right-multiply it to m.

Parameters:

  • m − Input matrix multiplied by this rotation matrix.
  • angle − Rotation angle expressed in radians.

See also: