logoalt Hacker News

coldcity_againtoday at 5:32 PM1 replyview on HN

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!


Replies

sreantoday at 5:40 PM

A related interesting fact is that small angular motions compose almost like vectors, order does not matter (i.e. they are commutative). This makes differential kinematics easier to deal with when dealing with polar or cylindrical coordinate systems.

Large angular deflections while being linear transforms, do not in general commute.

It will spoil the linear relation in your elegant expression, but a slightly better approximation for cos for small θ is

    1 - 0.5θ²