Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
layoutIfNeeded
on Aug 4, 2020
|
parent
|
context
|
favorite
| on:
Unlearn rotation matrices as rotations
Yep, the up vector is not necessarily orthogonal to the direction vector (which is also called “look at” vector in OpenGL [1]). Another approach would be to set
y = up.reject(direction).normalized()
where
a.reject(b) = a - b.project(a)
[1]
https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml...
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: