init


Description:

public void init (float angle, float x, float y, float z)

Initializes a quaternion that rotates angle degrees around the axis vector (x, y, z).

The axis vector does not need to be normalized.

Parameters:

this

An uninitialized Quaternion

angle

The angle you want to rotate around the given axis

x

The x component of your axis vector about which you want to rotate.

y

The y component of your axis vector about which you want to rotate.

z

The z component of your axis vector about which you want to rotate.

Returns:

A normalized, unit quaternion representing an orientation rotated angle degrees around the axis vector (x , y, z)