diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-19 08:50:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-19 08:54:37 +0300 |
commit | e2ec045cc995bb8767a5f88e8830aa1062921011 (patch) | |
tree | b1ee252419b89c8b109843eaf0673d82372e4586 /source/blender/blenlib/BLI_math_rotation.h | |
parent | e7fd6c8f30cd1161496831859da403eaa34fdf89 (diff) |
BLI_math: add utility to calculate compatible quaternions
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 5246d7ad1a9..60adcf8c762 100644 --- a/source/blender/blenlib/BLI_math_rotation.h +++ b/source/blender/blenlib/BLI_math_rotation.h @@ -77,6 +77,8 @@ void add_qt_qtqt(float q[4], const float a[4], const float b[4], const float t); void quat_to_mat3(float mat[3][3], const float q[4]); void quat_to_mat4(float mat[4][4], const float q[4]); +void quat_to_compatible_quat(float q[4], const float a[4], const float old[4]); + void mat3_normalized_to_quat(float q[4], const float mat[3][3]); void mat4_normalized_to_quat(float q[4], const float mat[4][4]); void mat3_to_quat(float q[4], const float mat[3][3]); |