Trees | Indices | Toggle frames |
---|
is_clockwise(points)
Check if the points given forms a clockwise polygon
|
|
is_left(p0,
p1,
p2)
Test if p2 is left, on or right of the (infinite) line (p0,p1).
|
|
is_convex(points)
Test if a polygon (list of (x,y)) is convex or not
|
|
reduce_poly(points,
tolerance=500)
Remove close points to simplify a polyline
tolerance is the min distance between two points squared.
|
|
convex_hull(points)
Create a convex hull from a list of points.
|
|
calc_center(points)
Calculate the center of a polygon
|
|
poly_vectors_around_center(pointlist,
points_as_Vec2d=True)
Rearranges vectors around the center
If points_as_Vec2d, then return points are also Vec2d, else pos
|
|
get_poly_UA(pointlist,
points_as_Vec2d=True)
Calculates the circumference and area of a given polygon
|
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Sun Jun 15 16:45:17 2008 | http://epydoc.sourceforge.net |