next up previous contents
Next: Rotation matrices Up: The Quaternion class Previous: unit and norm   Contents

Subsections

s and v

Syntax

Real s()const;
void set_s(const Real s);
ReturnMatrix v()const;
void set_v(const ColumnVector & v);

Description

The functions s() and v() returns one of the components of a quaternion ($s$ or $\mbox{\boldmath$ v $}$), while set_s() and set_v() can assign a value to one of the components.

Return Value

None for set_s() and set_v()

Real for s()

Matrix for v()



Richard Gourdeau 2004-07-06