This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_normalize_quaternion

Function Documentation

int rc_normalize_quaternion(rc_vector_t *q)

Normalizes a quaternion in-place to have length 1.0.

Parameters

q – The quarternion in form of a vector of lenth 4

Returns

Returns 0 on success or -1 on failure