Ensures that the returned quaternion has a non-negative scalar part (w). If it is negative, the entire quaternion is negated; otherwise, it remains unchanged. Arguments const quat &q- Quaternion. Return value Resulting quaternion. vec3&log(vec3&ret,const quat &q)# ...