Expand description
Two-dimensional geometry algorithms built on top of euclid.
Structs§
- Convex
Polygon - A convex polygon.
- Line
- A line between two points.
- Polygon
- A polygon.
Enums§
- Line
Intersection - The result of
Line::intersectionproviding the intersection point between two line segments, if any. - Relative
Direction - The direction a point lies relative to a line. Returned by
Line::relative_direction_of.
Functions§
- center
- Find the center (mean) of a set of points.
- is_
counter_ clockwise - Are the given vertices in counter-clockwise order?
- line
- Convenience function for creating lines.
- sort_
around - Sort the given
pointsaround the givenpivotpoint in counter-clockwise order, starting from 12 o’clock.