Quaternions
liorsinai.github.io
Quaternions
1–10 of 118 posts
Re: Quaternions
#2Re: Quaternions
#3Re: Quaternions
#4There are a vanishingly small number of scenarios where lerp() + normalize() doesn't work perfectly well enough and it is drastically faster and SIMD-friendly. That used to be the case at least.
Re: Quaternions
#5Here’s a Math SE answer on why: https://math.stackexchange.com/questions/1784166/why-are-the..., here’s a more ELI5 discussion: https://www.reddit.com/r/math/comments/9urjyx/why_there_is_n.... I especially like this very intuitive comment in that thread : https://www.reddit.com/r/math/comments/9urjyx/comment/e96j4l...
Left as an exercise to reader: prove that no such n-tuples exist for n>4.
Re: Quaternions
#6Re: Quaternions
#7I've been teaching myself geometric algebra which is apparently isomorphic to quaternion algebra. Some people prefer GA for 3D modeling work.
Re: Quaternions
#8w + xi + yj + zk
Where w, x, y, and z are real and i^2 = j^2 = k^2 = -1 and ij = k, ji = -k, jk = i, kj = -i, ki = j, ik = -j.
Being u = (x, y, z) = xi + yj + zk a unitary vector, it is possible rotate any vector q by an angle theta around u by doing:
pqp'
where p = cos(theta/2) + sin(theta/2)u and p' = cos(theta/2) - sin(theta/2)u .
Re: Quaternions
#9Re: Quaternions
#10Would be more amusing if "they eluded a lecturer" or "a lecturer once elided them".
("alluded to them").