A Matrix4 that scales x, y and z by the components of v and leaves the translation at zero.
m := make_scale_matrix4(xyz(2, 3, 4));
assert(transform_point(m, xyz(1, 1, 1)) == xyz(2, 3, 4));make_scale_matrix4 :: (v: Vector3) -> Matrix4
A matrix that scales each axis by the matching part of v.
Parameters
- v: Vector3
- the scale on x, y and z.