next up previous contents
Next: s and v Up: The Quaternion class Previous: quaternion time derivative   Contents

Subsections

unit and norm

Syntax

Quaternion & unit();
Real norm()const;

Description

unit() makes the quaternion a unit quaternion, norm() computes and returns the norm of the quaternion. norm_sqr() computes and returns the square norm of the quaternion.

Return Value

Quaternion for unit()

Real for norm() and norm_sqr()



Richard Gourdeau 2004-07-06