Function nalgebra_glm::scale

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

Builds a scale 4 * 4 matrix created from 3 scalars and right-multiply it to m.

Parameters:

  • m − Input matrix multiplied by this scale matrix.
  • v − Ratio of scaling for each axis.

See also: