Hacker News new | ask | show | jobs
by tripletao 2149 days ago
We've already defined z and x by that stage, and we need y to be a unit vector perpendicular to both. So y can only be z.cross(x) (or x.cross(z) for mirrored).