[]Function rusty_engine::prelude::glm::scale

pub fn scale<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 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: