Module geo2d

Module geo2d 

Source
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§

FetchBounds2D
Trait to return a bounding box of 2D geometry.
FetchPoints2D
Trait to return all points of 2D geometry.
RenderToMultiPolygon
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§

LineString
Line string.
MultiLineString
Multiple line strings.
MultiPolygon
Multiple polygons.
Point
Point.
Polygon
Polygon.
Rect
Rectangle.