Expand description
An import prelude that re-exports commonly used items.
Structs§
- Dims
- A horizontal and vertical rectangular dimension with no specified location.
- Edge
- An edge of a rectangle.
- Orientation
- An orientation of a geometric object.
- Point
- A point in two-dimensional space.
- Polygon
- A polygon, with vertex coordinates given
- Rect
- An axis-aligned rectangle, specified by lower-left and upper-right corners.
- Sides
- An association of a value with type
Tto each of the fourSides. - Span
- A closed interval of coordinates in one dimension.
- Transformation
- A transformation representing a Manhattan translation, rotation, and/or reflection of geometry.
Enums§
- Align
Mode - An enumeration of possible alignment modes between two geometric shapes.
- Containment
- Ways in which an inner shape can be contained within an enclosing shape.
- Corner
- An enumeration of the corners of an axis-aligned rectangle.
- Dir
- An enumeration of axis-aligned directions.
- Named
Orientation - A named orientation.
- Place
Mode - An enumeration of possible ways to place a geometric shape at a point.
- Side
- An enumeration of the sides of an axis-aligned rectangle.
- Sign
- Enumeration over possible signs.
Traits§
- Align
Bbox - A geometric shape that can be aligned with another shape using their bounding boxes.
- Align
Rect - A geometric shape that can be aligned using the relationship between two
Rects. - Bbox
- A geometric shape that has a bounding box.
- Contains
- Provides information on whether a shape contains another shape.
- Place
Bbox - A geometric shape that can be placed at a point using its bounding box.
- Place
Rect - A geometric shape that can be placed at a point.
- Transform
- A trait for specifying how an object is changed by a
Transformation.