lamp_mac/TOF/
intersection_points.pro
FUNCTION intersection_points, a1,b1,c1,d1,a2,b2,c2,d2 Finds intersection points between 2 quadrilaterals Input quadrilateral points must be ordered returns an array (axis, npoints) (if no intersection, then returns 0) where the intersecting polygon has npoints vertices. Note that the output polygon points are not ordered JRS 21/10/2009
Routines
Routine details
top inside_quad
result = inside_quad(p, a, b, c, d)
******* *********** ** Decides whether point p is inside quadrilateral with vertices (a,b,c,d) ** Uses barycentric coordinates technique ** (see www.blackpawn.com/texts/pointinpoly)
Parameters
- p
- a
- b
- c
- d
File attributes
Modification date: | Tue Oct 1 14:39:52 2013 |
Lines: | 170 |