[]Function rusty_engine::prelude::glm::translate

pub fn translate<N>(
    m: &Matrix<N, U4, U4, <DefaultAllocator as Allocator<N, U4, U4>>::Buffer>,
    v: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Matrix<N, U4, U4, <DefaultAllocator as Allocator<N, U4, U4>>::Buffer> where
    N: Number

Builds a translation 4 * 4 matrix created from a vector of 3 components and right-multiply it to m.

Parameters:

  • m − Input matrix multiplied by this translation matrix.
  • v − Coordinates of a translation vector.

See also: