| ▲ | aap_ 2 hours ago | |||||||
He's still computing cross(z, d) and dot(z, d) separately. that looks like a code smell to me. with quaternions this would be easier: just calculate the quotient between z and d and take the square root (which means adding 1 and renormalising). the square root is necessary if one is dealing with vectors, which live in a kind of square-y space. finding the rotation between two spinors is even simpler: it's just the quotient of the the spinors as quaternions. unfortunately hamilton's view that quaternions are the quotient of vectors has never been quite abandoned. it's much more natural to think of them as quotients of spinors. | ||||||||
| ▲ | BenoitP an hour ago | parent [-] | |||||||
> He's still computing cross(z, d) and dot(z, d) separately. that looks like a code smell to me. with quaternions ... Fair point, but I think you misspelled Projective Geometric Algebra | ||||||||
| ||||||||