AngleAxis Values

The AngleAxis class provides a representation for orientation in 3D space using an angle in degrees and a rotation axis. This class is similar to a quaternion, except that a normalized quaternion only represents -PI to +PI rotation. Angles can be greater than 360 and so specify multiple revolutions, unlike quaternions. Rotations follow the right-hand-rule.

Constructors

angleaxis

as angleaxis

as angleaxis

as angleaxis

extracts the rotation component as an angleaxis

Operators

==

!=

as

AngleAxis can convert to Matrix3's, Quat's, Eulerangle's

Properties

.angle : Float

.axis : Point3

.numrevs : Integer

Methods

copy

Creates a new copy of the angleaxis value. For example:

newAngleAxis = copy oldAngleAxis

The new value contains a copy of the input angleaxis value, and is independent of the input angleaxis value.

random

Random rotation in degrees, but uses quat Slerp, so loses multiple revolution angles.