Contents:
Cruxingator.split.
Point
Points in two dimensions
get_pos
Get a rounded position at precision level
merge
Tells two points are equivalent
Segment
Segment between two endpoints
intersect
Calculate the intersection point beetween self and other
Vect
Two dimensional Vector
norm2
Squared norm of the vector
cut
Cuts the segments such that no two segments cross
find_intersections
Find all intersections between segments
generate_id_tuple
Generates a tuple for each point (id, x, y, [id of linked])
pairs
Iterate on pairs of segments