diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-04 02:23:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-04 02:24:38 +0400 |
commit | f3d13bec6dbacbf2ddfba034776175cf78d628b0 (patch) | |
tree | 24023d6d26a126b353bf62da8acae091c1efdb9b /source/blender/blenlib/intern/math_vector_inline.c | |
parent | 239f0dbcd20a40642fc826ea6a90d2991f00febc (diff) |
Code Cleanup: correct fabsf/fabs/abs use
Diffstat (limited to 'source/blender/blenlib/intern/math_vector_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_vector_inline.c | 5 |
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 cdbbcc5e025..05be8bda709 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -595,6 +595,11 @@ MINLINE float dot_v3v3(const float a[3], const float b[3]) return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; } +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 float cross_v2v2(const float a[2], const float b[2]) { return a[0] * b[1] - a[1] * b[0]; |