Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
orbots
on Feb 1, 2020
|
parent
|
context
|
favorite
| on:
Let's remove quaternions from every 3D engine (201...
Memory layout. You can do a hacky "cast" from a homegeneous 4-vector to a ideal 3-vector for free. Same pointer.
joppy
on Feb 2, 2020
[–]
This would mean that you have to make sure elsewhere in your code that the last coordinate is always normalised to 1, so do you win overall using this strategy? Plus, the same cast in the other method is ptr+1, which is assumedly just as fast.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: