diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-30 08:57:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-30 08:57:16 +0400 |
commit | 5910531318c02f0f223ce608dcbe0a6e3232828a (patch) | |
tree | 93e619abd11f4849fa78de37a1c7093f16b91755 /source/blender/blenlib/BLI_math_geom.h | |
parent | 8aff45d8f671e7eb2f404c8f194e06d88c5147c9 (diff) |
Math Library: add functions cross_poly_v2, cross_tri_v2
also added utility macro for removing elements in the middle of an array
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index f815716148b..9073fbb8b80 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -54,14 +54,17 @@ void cent_quad_v3(float r[3], const float a[3], const float b[3], const float c[ float normal_tri_v3(float r[3], const float a[3], const float b[3], const float c[3]); float normal_quad_v3(float r[3], const float a[3], const float b[3], const float c[3], const float d[3]); -float area_tri_v2(const float a[2], const float b[2], const float c[2]); -float area_tri_signed_v2(const float v1[2], const float v2[2], const float v3[2]); +MINLINE float area_tri_v2(const float a[2], const float b[2], const float c[2]); +MINLINE float area_tri_signed_v2(const float v1[2], const float v2[2], const float v3[2]); float area_tri_v3(const float a[3], const float b[3], const float c[3]); float area_tri_signed_v3(const float v1[3], const float v2[3], const float v3[3], const float normal[3]); float area_quad_v3(const float a[3], const float b[3], const float c[3], const float d[3]); float area_poly_v3(int nr, float verts[][3], const float normal[3]); float area_poly_v2(int nr, float verts[][2]); +MINLINE float cross_tri_v2(const float v1[2], const float v2[2], const float v3[2]); +float cross_poly_v2(int nr, float verts[][2]); + /********************************* Planes **********************************/ void plane_from_point_normal_v3(float r_plane[4], const float plane_co[3], const float plane_no[3]); |