diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-10-23 19:51:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-23 19:51:00 +0300 |
commit | 9d8a01dba195880c4b3bc8a5fb2914881b3abeca (patch) | |
tree | f1c048fb934bad730c4f577862de659dc5490072 /source/blender/blenlib/BLI_math_rotation.h | |
parent | d5fb0e517ca998ce39c3c3e46274b91f6d7e5124 (diff) |
BLI_math: add invert_qt_normalized
When the quat is known to be unit length, so we can avoid scaling
(just conjugate_qt which asserts on non unit quats).
Diffstat (limited to 'source/blender/blenlib/BLI_math_rotation.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_rotation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h index ac9295c9035..4c4e305c965 100644 --- a/source/blender/blenlib/BLI_math_rotation.h +++ b/source/blender/blenlib/BLI_math_rotation.h @@ -59,6 +59,8 @@ void sub_qt_qtqt(float q[4], const float a[4], const float b[4]); void invert_qt(float q[4]); void invert_qt_qt(float q1[4], const float q2[4]); +void invert_qt_normalized(float q[4]); +void invert_qt_qt_normalized(float q1[4], const float q2[4]); void conjugate_qt(float q[4]); void conjugate_qt_qt(float q1[4], const float q2[4]); float dot_qtqt(const float a[4], const float b[4]); |