Expand description
2D Geometry
Structs§
- Circle
- Circle with offset.
- Geometries2D
- 2D geometry collection.
- Grid
Cells - An iterator that iterates over grid cells of a rectangle.
- Line
- A 2D line type.
- Ngon
Iterator - Iterator over
npoints of a regular convex polygon (Ngon). - Size2
- 2D size in millimeters.
- With
Bounds2D - 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.
- Calc
Bounds2D - Trait to calculate a bounding box of 2D geometry.
- Fetch
Points2D - 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.
- Line
String - Line string.
- Multi
Line String - Multiple line strings.
- Multi
Polygon - Multiple polygons.
- Point
- Point.
- Polygon
- Polygon.
- Rect
- Rectangle.