From a51a0ca772b21814e29bdb3b2b5fd854e29c5334 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 19 Apr 2014 22:12:50 +1000 Subject: Math Lib: add shell_v3v3_normalized_to_dist and v2 version bypass angle calculation to avoids (asin, sqrt, cos). --- source/blender/blenlib/BLI_math_geom.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/BLI_math_geom.h') diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 6ba8910db14..5067cee7352 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -314,6 +314,10 @@ MINLINE int min_axis_v3(const float vec[3]); MINLINE int poly_to_tri_count(const int poly_count, const int corner_count); +MINLINE float shell_angle_to_dist(const float angle); +MINLINE float shell_v3v3_normalized_to_dist(const float a[3], const float b[3]); +MINLINE float shell_v2v2_normalized_to_dist(const float a[2], const float b[2]); + /**************************** Inline Definitions ******************************/ #if BLI_MATH_DO_INLINE -- cgit v1.2.3