diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-15 15:35:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-15 15:35:13 +0400 |
commit | 380c5d66a8717ebe7b0d124302a39c7068f04efb (patch) | |
tree | 763ae7b2c68bdba0b88742e240413beff500c01f /source/blender/blenlib/BLI_math_geom.h | |
parent | 474b9224722953b36b46a00e1a8201858f2a99ae (diff) |
math function to get the intersection point between 2 lines (not 2 segments which we already have).
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 70450156d98..b163be4a70c 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -87,6 +87,7 @@ void limit_dist_v3(float v1[3], float v2[3], const float dist); #define ISECT_LINE_LINE_EXACT 1 #define ISECT_LINE_LINE_CROSS 2 +int isect_line_line_v2_point(const float v1[2], const float v2[2], const float v3[2], const float v4[2], float vi[2]); int isect_line_line_v2(const float a1[2], const float a2[2], const float b1[2], const float b2[2]); int isect_line_line_v2_int(const int a1[2], const int a2[2], const int b1[2], const int b2[2]); int isect_line_sphere_v3(const float l1[3], const float l2[3], const float sp[3], const float r, float r_p1[3], float r_p2[3]); |