Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-19 09:36:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-19 09:36:47 +0400
commitfabc46b41f43aa93c5118fceb4f482419e75ed6f (patch)
treef6b38ffe11ad6fd385184a5c977750ba0e29ee07 /source/blender/blenlib/BLI_math_rotation.h
parentfc9c790563a55108bc4ebfaf6a576841fafa2117 (diff)
Math Lib: add rotation_between_vecs_to_mat3
- behaves like rotation_between_vecs_to_quat - avoids calling sin,cos calls (approx 1.6x faster).
Diffstat (limited to 'source/blender/blenlib/BLI_math_rotation.h')
-rw-r--r--source/blender/blenlib/BLI_math_rotation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h
index 25c9b5e468f..6c63217e0ba 100644
--- a/source/blender/blenlib/BLI_math_rotation.h
+++ b/source/blender/blenlib/BLI_math_rotation.h
@@ -84,6 +84,7 @@ void tri_to_quat_ex(float quat[4], const float v1[3], const float v2[3], const f
float tri_to_quat(float q[4], const float a[3], const float b[3], const float c[3]);
void vec_to_quat(float q[4], const float vec[3], short axis, const short upflag);
/* note: v1 and v2 must be normalized */
+void rotation_between_vecs_to_mat3(float m[3][3], const float v1[3], const float v2[3]);
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]);