Module geo2d

Module geo2d 

Source
Expand description

2D Geometry

Structs§

Circle
Circle with offset.
Geometries2D
2D geometry collection.
GridCells
An iterator that iterates over grid cells of a rectangle.
Line
A 2D line type.
NgonIterator
Iterator over n points of a regular convex polygon (Ngon).
Size2
2D size in millimeters.
WithBounds2D
Holds bounds for a 3D object.

Enums§

Geometry2D
A 2D Geometry which is independent from resolution.

Traits§

Align2D
Trait to align a 2D geometry collection with spacing along an axis.
CalcBounds2D
Trait to calculate a bounding box of 2D geometry.
FetchPoints2D
Trait to return all points of 2D geometry.
Mirror2D
Mirrors a 2D geometry, keeping the original (in contrast to reflect).
Reflect2D
Reflects a 2D geometry along a line.
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§

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