Crate intersect2d

Source

Modules§

algorithm

Enums§

IntersectError
Intersection

Traits§

SelfIntersectingExclusive
Trait for self intersection tests where the end points are excluded
SelfIntersectingInclusive
Trait for self intersection tests where the end points are included

Functions§

intersect
Get any intersection point between line segments. Note that this function always detects endpoint-to-endpoint intersections. Most of this is from https://stackoverflow.com/a/565282
intersect_line_point
Get any intersection point between line segment and point. Inspired by https://stackoverflow.com/a/17590923
scale_to_coordinate
to_lines
Utility function converting an array slice into a vec of Line
ulps_eqDeprecated
ulps_eq_c
returns true if the two coordinates are virtually identical