diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-12 00:27:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-12 00:27:39 +0300 |
commit | 448d24e7a02b3ebf3b5a66f64d187b9cd64ed9ed (patch) | |
tree | 2e7a2532ccbb4d34956a59052970dfb0b0b2ed7d /source/blender/blenlib/BLI_math_geom.h | |
parent | 194449d03801d4c41df2a54e5564c67888ecf3d2 (diff) |
New math util funcitons:
- equals_v2v2
- project_v2_v2v2
- isect_seg_seg_v2_point
which would be necessery for my further multires interpolation commit
M_Geometry_LineIntersect2D now uses isect_seg_seg_v2_point(). Behaviour of this
function was changed a bit -- it haven't returned intersection point in several
cases when two segments are making angle.
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 7d06bbce43d..7dae49f067d 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -73,6 +73,7 @@ void closest_to_line_segment_v3(float r[3], float p[3], float l1[3], float l2[3] int isect_line_line_v2(float a1[2], float a2[2], float b1[2], float b2[2]); int isect_line_line_v2_short(short a1[2], short a2[2], short b1[2], short b2[2]); +int isect_seg_seg_v2_point(float v1[2], float v2[2], float v3[2], float v4[2], float vi[2]); /* Returns the number of point of interests * 0 - lines are colinear |