diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-15 09:18:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-15 09:18:45 +0400 |
commit | 25bbf99a79b0a1fa324dcd8d49bf80807b2d9672 (patch) | |
tree | 810fc892538ae4ae98f5196554ec8a5d874ea7ba /source/blender/blenlib/intern/math_vector_inline.c | |
parent | 68dea6591d4a08c50ade96ec58f00853d0d5340a (diff) |
replace SIDE_OF_LINE macro with line_point_side_v2() inline function.
made a number of files build without unused warnings.
Diffstat (limited to 'source/blender/blenlib/intern/math_vector_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_vector_inline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c index 2f75fcead79..a45356f0bde 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -454,5 +454,11 @@ MINLINE int compare_v4v4(float *v1, float *v2, float limit) return 0; } +MINLINE float line_point_side_v2(const float *l1, const float *l2, const float *pt) +{ + return ((l1[0]-pt[0]) * (l2[1]-pt[1])) - + ((l2[0]-pt[0]) * (l1[1]-pt[1])); +} + #endif /* BLI_MATH_VECTOR_INLINE */ |