PolyPartition v0.1.2 PolyPartition.Geometry View Source

Link to this section Summary

Functions

returns an [ [ [x1, y1], [x2, y2] ], … ] list representing the sides of the polygon

determine intersection of segments orthogonal to axes

sign of result indicates which side of the line through with slope the point lies on

Do two segments share an endpoint?

Link to this section Functions

returns an [ [ [x1, y1], [x2, y2] ], … ] list representing the sides of the polygon

Link to this function good_cut?(poly, opp_index) View Source
Link to this function intersect_side?(poly, seg) View Source
Link to this function perp_intersect?(seg1, seg2) View Source

determine intersection of segments orthogonal to axes

Link to this function point_score(given, sample, m) View Source

sign of result indicates which side of the line through with slope the point lies on

Link to this function share_endpoint?(seg1, seg2) View Source

Do two segments share an endpoint?