pub fn scaling_of<T: Copy + Float + NumAssign>(m: Mat4<T>) -> Vec3<T>
Expand description

Extracts the (x, y, z) scaling component from a 4x4 TRS transformation matrix.

Examples

assert_eq!(*transform::scaling_of(<Mat4>::from_slice(&[2., 2., -1., 0., -2., 4., 4., 0., 6., -3., 6., 0., 11., 12., 13., 1.])).as_ref(), [3., 6., 9.]);