From a17cba339cf6d425b44fb4953974cedaed1a8cef Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 23 May 2016 21:31:22 +1000 Subject: BLI_math: Add function to calculate circular cubic curve tangents --- 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 45edaca544d..54b824c91ac 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -470,6 +470,10 @@ MINLINE float shell_v2v2_normalized_to_dist(const float a[2], const float b[2]); MINLINE float shell_v3v3_mid_normalized_to_dist(const float a[3], const float b[3]); MINLINE float shell_v2v2_mid_normalized_to_dist(const float a[2], const float b[2]); +/********************************* Cubic (Bezier) *******************************/ + +float cubic_tangent_factor_circle_v3(const float tan_l[3], const float tan_r[3]); + /**************************** Inline Definitions ******************************/ #if BLI_MATH_DO_INLINE -- cgit v1.2.3