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