4.5.2.1 Quaternion Objects

class Quaternion
Quaternion( Q, x)

Create the element x of the quaternion algebra Q.

This function should be called only by Q. To create a Quaternion rom x yourself, create Q and then write Q(x).

Instances of class Quaternion have the following methods (in addition to inherited methods and special methods):

vector

These methods are defined as follows:

vector( )

Returns a reference to the vector that defines this quaternion.

See About this document... for information on suggesting changes.