rotate, scale, and nonuniform_scale methods for Mat4
Closed this issue · 2 comments
wackbyte commented
As Mat4
(and Wat4
) already have translate
and translated
methods, it would make sense for it to also have rotate
, rotated
, scale
, scaled
, nonuniform_scale
, and nonuniform_scaled
methods.
wackbyte commented
Never mind. I just found Isometry3
and Similarity3
. Sorry.
fu5ha commented
I've been debating this because, on the one hand, Mat4s are generally used as homogeneous 3d matrices, and you could add these methods with that assumption. On the other, these ops also all have parallels in 4d, and are inherently 3d operations. So they currently exist on Mat3 and you can then do into_homogeneous()
to turn it into a homogeneous Mat4. Should be just as fast after the optimizer.