Module substrate::geometry::prelude

source ·
Expand description

An import prelude that re-exports commonly used items.

Structs§

  • A horizontal and vertical rectangular dimension with no specified location.
  • An edge of a rectangle.
  • An orientation of a geometric object.
  • A point in two-dimensional space.
  • A polygon, with vertex coordinates given
  • An axis-aligned rectangle, specified by lower-left and upper-right corners.
  • An association of a value with type T to each of the four Sides.
  • A closed interval of coordinates in one dimension.
  • A transformation representing translation, rotation, and reflection of geometry.

Enums§

  • An enumeration of possible alignment modes between two geometric shapes.
  • Ways in which an inner shape can be contained within an enclosing shape.
  • An enumeration of the corners of an axis-aligned rectangle.
  • An enumeration of axis-aligned directions.
  • A named orientation.
  • An enumeration of possible ways to place a geometric shape at a point.
  • An enumeration of the sides of an axis-aligned rectangle.
  • Enumeration over possible signs.

Traits§

  • A geometric shape that can be aligned with another shape using their bounding boxes.
  • A geometric shape that can be aligned using the relationship between two Rects.
  • A geometric shape that has a bounding box.
  • Provides information on whether a shape contains another shape.
  • A geometric shape that can be placed at a point using its bounding box.
  • A geometric shape that can be placed at a point.
  • A trait for specifying how an object is changed by a transformation.