scale

Function scale 

Source
pub fn scale<T>(scale: Vector3<T>) -> Matrix4<T>
where T: Scalar,
Expand description

Creates a 4x4 scaling matrix.

The scaling matrix has the form:

[sx 0  0  0]
[0  sy 0  0]
[0  0  sz 0]
[0  0  0  1]

ยงParameters

  • scale: Scale factors for each axis