mirror of
https://github.com/recp/cglm.git
synced 2025-12-25 12:55:04 +00:00
quat: fix quaternion inverse and tests about it
* multiplication quaternion and its inverse must be identity
This commit is contained in:
@@ -259,7 +259,7 @@ void
|
||||
glm_quat_inv(versor q, versor dest) {
|
||||
versor conj;
|
||||
glm_quat_conjugate(q, conj);
|
||||
glm_vec_scale(conj, glm_vec4_norm2(q), dest);
|
||||
glm_vec4_scale(conj, 1.0f / glm_vec4_norm2(q), dest);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user