Function nalgebra_glm::translate

source ·
pub fn translate<T: Number>(m: &TMat4<T>, v: &TVec3<T>) -> TMat4<T>
Expand description

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: