Module prelude

Module prelude 

Source
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 T to each of the four Sides.
Span
A closed interval of coordinates in one dimension.
Transformation
A transformation representing a Manhattan translation, rotation, and/or reflection of geometry.

Enums§

AlignMode
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.
NamedOrientation
A named orientation.
PlaceMode
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§

AlignBbox
A geometric shape that can be aligned with another shape using their bounding boxes.
AlignRect
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.
PlaceBbox
A geometric shape that can be placed at a point using its bounding box.
PlaceRect
A geometric shape that can be placed at a point.
Transform
A trait for specifying how an object is changed by a Transformation.