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>2015-05-21 13:59:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-21 14:06:29 +0300
commit6ee653352bbbc8e358969426186b540f98a9aca0 (patch)
tree0f751467cc2f36ffe3b248b76e027ccf22eda588 /source/blender/blenlib/intern/math_vector_inline.c
parent6b40a4bcb1bcd82bf21e0a3473f8aacc11727b24 (diff)
Math Lib: double versions of vector funcs
- add_vn_vn_d - add_vn_vnvn_d - mul_vn_db
Diffstat (limited to 'source/blender/blenlib/intern/math_vector_inline.c')
-rw-r--r--source/blender/blenlib/intern/math_vector_inline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c
index 621d5fbfbfe..fb33fed33e4 100644
--- a/source/blender/blenlib/intern/math_vector_inline.c
+++ b/source/blender/blenlib/intern/math_vector_inline.c
@@ -680,6 +680,11 @@ MINLINE float dot_v4v4(const float a[4], const float b[4])
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];
}
+MINLINE double dot_v3db_v3fl(const double a[3], const float b[3])
+{
+ return a[0] * (double)b[0] + a[1] * (double)b[1] + a[2] * (double)b[2];
+}
+
MINLINE float cross_v2v2(const float a[2], const float b[2])
{
return a[0] * b[1] - a[1] * b[0];