Farsyte / Toolkit

Collection of small tools
GNU Lesser General Public License v3.0
0 stars 0 forks source link

C++ class for Quaternions #11

Open Farsyte opened 10 years ago

Farsyte commented 10 years ago

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.

Farsyte commented 10 years ago

Representation, construction, access and equality done. Next up: arithmetic.

Farsyte commented 10 years ago

NOTE: need to do the non-template version of Quaternions, then come back to the Template version.

Farsyte commented 10 years ago

Simple quaternion established and extended as far as operating on vectors and extracting rotation matrices.