| ▲ | coldcity_again 4 hours ago | |||||||
I've been thinking about this since [1] the other day, but I still love how rotation by small angles lets you drop trig entirely. Let α represent a roll rotation, and β a pitch rotation. Let R(α) be:
Let R(β) be:
Combine them:
But! For small α and β, just approximate:
So now:
[1]https://news.ycombinator.com/item?id=47348192 | ||||||||
| ▲ | coldcity_again 4 hours ago | parent [-] | |||||||
If you just see the conclusion I think it's hard to immediately grok how rotation can arise from this. This is a great technique for cheaply doing 3D starfields etc on 8-bit machines. Look ma, no sine table! | ||||||||
| ||||||||