Function scale

Source
pub fn scale<T>(
    m: &Matrix<T, Const<4>, Const<4>, ArrayStorage<T, 4, 4>>,
    v: &Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>,
) -> Matrix<T, Const<4>, Const<4>, ArrayStorage<T, 4, 4>>
where T: Number,
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: