lamp_mac/D7_g/
inside_quad.pro
Routines
result = shoelace(a)
result = triangle_area(a, b, c)
result = inside_triangle(p, a, b, c)
result = inside_quad(p, a, b, c, d)
result = between(a, b, p)
result = crossing_lines(a, b, c, d)
result = intersection_points(a1, b1, c1, d1, a2, b2, c2, d2)
result = order_vertices(a, b, c, d)
result = quad_generator()
result = test()
Routine details
top shoelace
result = shoelace(a)
******* ******** ** Shoelace formula for calculating area of arbitrary convex polygon ** a is an array of points for general shoelace formula. ** Polygon must be convex
Parameters
- a
top triangle_area
result = triangle_area(a, b, c)
******* ************* ** shoelace formula for a triangle
Parameters
- a
- b
- c
top inside_triangle
result = inside_triangle(p, a, b, c)
******* *************** ** p is coordinates of test point ** a, b and c are triangle vertexes
Parameters
- p
- a
- b
- c
top inside_quad
result = inside_quad(p, a, b, c, d)
******* *********** ** p is coordinates of test point ** a, b ,c and d are ordered quadrilateral vertexes
Parameters
- p
- a
- b
- c
- d
top crossing_lines
result = crossing_lines(a, b, c, d)
******* ************** ** finds crossing points of 2 lines a-b and c-d
Parameters
- a
- b
- c
- d
top intersection_points
result = intersection_points(a1, b1, c1, d1, a2, b2, c2, d2)
******* ******************* ** finds intersection points between 2 quadrilaterals
Parameters
- a1
- b1
- c1
- d1
- a2
- b2
- c2
- d2
top order_vertices
result = order_vertices(a, b, c, d)
******* ************** ** stuff for inside_quad
Parameters
- a
- b
- c
- d
top quad_generator
result = quad_generator()
******* ************** ** generates convex quadrilateral vertexes in cylic order
File attributes
Modification date: | Tue Oct 1 14:43:35 2013 |
Lines: | 286 |