Expand description
2D Geometry
Structs§
- Bounds2D
- 2D bounds, essentially an optional bounding rect.
- Circle
- Circle with offset.
- Geometries2D
- 2D geometry collection.
- Line
- A 2D edge type.
- Size2
- 2D size in millimeters.
Enums§
- Geometry2D
- Geometry
Traits§
- Fetch
Bounds2D - Trait to return a bounding box of 2D geometry.
- Fetch
Points2D - Trait to return all points of 2D geometry.
- Render
ToMulti Polygon - Trait to render a
Geometry2D
into a multi polygon. - Transformed2D
- Transformed version of a 2D geometry.
Functions§
- line_
string_ to_ vec - Convert a line string to a vector of
Scalar
. - multi_
polygon_ to_ vec - Convert a multi polygon into a vector of coordinates.
- polygon_
to_ vec - Convert a polygon to a vector of
Scalar
.
Type Aliases§
- Line
String - Line string.
- Multi
Line String - Multiple line strings.
- Multi
Polygon - Multiple polygons.
- Point
- Point.
- Polygon
- Polygon.
- Rect
- Rectangle.