diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-20 07:39:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-20 08:15:29 +0400 |
commit | c6252d6e608a0dff72a8d5fde404fa6bd2c7ca7b (patch) | |
tree | 56367146d49417839143c93852298fcdebfc6648 /source/blender/blenlib/BLI_math_rotation.h | |
parent | aee30184f3a2f332edf9eaf256a0a23beca26673 (diff) |
Math Lib: add angle_qt functions
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 54bfef4bd14..477b3280d09 100644 --- a/source/blender/blenlib/BLI_math_rotation.h +++ b/source/blender/blenlib/BLI_math_rotation.h @@ -86,6 +86,11 @@ void vec_to_quat(float q[4], const float vec[3], short axis, const short upflag void rotation_between_vecs_to_quat(float q[4], const float v1[3], const float v2[3]); void rotation_between_quats_to_quat(float q[4], const float q1[4], const float q2[4]); +float angle_normalized_qt(const float q[4]); +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]); + /* 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]); |