diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-12-19 05:59:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-12-19 06:03:29 +0300 |
commit | 7a58ff928c21110d9798e0d94ed2be1de7400f90 (patch) | |
tree | 98de60d54bdbb908899d5ea2adf151d243ce6d5f /source/blender/blenlib/BLI_math_rotation.h | |
parent | bb30ce0f0bf13e519d5a34707965fde3f57eb185 (diff) |
Math Lib: signed versions of quaternion angle
There was no simple way to get the shortest quaternion angle.
Diffstat (limited to 'source/blender/blenlib/BLI_math_rotation.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_rotation.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h index e059327a490..1f206e5e234 100644 --- a/source/blender/blenlib/BLI_math_rotation.h +++ b/source/blender/blenlib/BLI_math_rotation.h @@ -97,6 +97,11 @@ float angle_normalized_qtqt(const float q1[4], const float q2[4]); float angle_qt(const float q[4]); float angle_qtqt(const float q1[4], const float q2[4]); +float angle_signed_normalized_qt(const float q[4]); +float angle_signed_normalized_qtqt(const float q1[4], const float q2[4]); +float angle_signed_qt(const float q[4]); +float angle_signed_qtqt(const float q1[4], const float q2[4]); + /* TODO: don't what this is, but it's not the same as mat3_to_quat */ void mat3_to_quat_is_ok(float q[4], float mat[3][3]); |