diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-05-23 14:31:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-05-23 14:35:54 +0300 |
commit | a17cba339cf6d425b44fb4953974cedaed1a8cef (patch) | |
tree | 199ebbcb9d7501dc7c95144e68b3f7c1e71cf55c /source/blender/blenlib/BLI_math_geom.h | |
parent | abe98de63ce4ec9a80aa8fd16bf94675d3947f12 (diff) |
BLI_math: Add function to calculate circular cubic curve tangents
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |