You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by Demiu August 15, 2022
Hello, while working with 2D/3D transformation using matrices I felt a certain transformation was missing. There is no ergonomic way to turn a matrix for 3D transformation (Mat4) into a matrix for 2D transformation (Mat3) preserving the translation; for example cut off Z off a Mat4, so remove 3rd column and 3rd row. Same thing is missing from the Affine types.
I think it would be a good convenience function
Add a minor method to support this use case.
One catch is supporting both Mat3 and Mat3A. For this case from_minor(Mat4) could be used, but that doesn't work so well for the Mat2 case, also, minor as a method feels nicer though.
The text was updated successfully, but these errors were encountered:
bitshifter
changed the title
Add Mat/Affine minor
Add Mat/Affine minor method
Aug 17, 2022
Discussed in #323
Originally posted by Demiu August 15, 2022
Hello, while working with 2D/3D transformation using matrices I felt a certain transformation was missing. There is no ergonomic way to turn a matrix for 3D transformation (Mat4) into a matrix for 2D transformation (Mat3) preserving the translation; for example cut off Z off a Mat4, so remove 3rd column and 3rd row. Same thing is missing from the Affine types.
I think it would be a good convenience function
Add a
minor
method to support this use case.One catch is supporting both
Mat3
andMat3A
. For this casefrom_minor(Mat4)
could be used, but that doesn't work so well for theMat2
case, also,minor
as a method feels nicer though.The text was updated successfully, but these errors were encountered: