Timeline for How to convert a 4x4 matrix transformation to another coordinate system?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 1 at 7:53 | comment | added | DMGregory♦ | Easy: express the new coordinate system's origin in terms of the old, then run that point through the matrix above. Negate the result and use that as your fourth column (keeping a 1 in the bottom-right entry). Now if you pass that new-origin-in-old-system point through the updated matrix, the result gets subtracted from itself, yielding the zero vector. | |
Jul 31 at 23:20 | comment | added | BenKoshy | Thanks for your answer. Any pointers on how translations would be handled - i.e. where the "origins" of the two coordinate systems are different? | |
Oct 27, 2022 at 10:53 | comment | added | thalm | Thanks, after implementing and optimizing it, I've added the complete solution including the C# code as another answer. It does everything very efficiently with only 6 multiplications and one division. | |
Oct 26, 2022 at 21:41 | vote | accept | thalm | ||
Oct 26, 2022 at 21:36 | history | edited | DMGregory♦ | CC BY-SA 4.0 |
Adding note on fast inversion via transpose
|
Oct 26, 2022 at 21:28 | history | edited | DMGregory♦ | CC BY-SA 4.0 |
Adding matrix conversion step
|
Oct 26, 2022 at 16:27 | vote | accept | thalm | ||
Oct 26, 2022 at 20:47 | |||||
Oct 26, 2022 at 14:47 | history | answered | DMGregory♦ | CC BY-SA 4.0 |