Open Farsyte opened 10 years ago
Representation, construction, access and equality done. Next up: arithmetic.
NOTE: need to do the non-template version of Quaternions, then come back to the Template version.
Simple quaternion established and extended as far as operating on vectors and extracting rotation matrices.
Hypercomplex number of form (W+Xi+Yj+Zk), where ii=jj=kk=ijk=-1. Allow for a future subclass to be "unit quaternion", WW+XX+YY+ZZ=1.