|
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=0.5)
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. |
|
|
|
|
|
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 perimeter and area of a given polygon |
|
|