Crate substrate::geometry

source ·
Expand description

2-D geometric operations relevant to integrated circuit layout.

§Examples

Create a rectangle:

let rect = Rect::from_sides(10, 20, 30, 40);

Modules§

  • Traits for aligning geometric objects.
  • Axis-aligned rectangular bounding boxes.
  • Traits for checking whether a shape contains another shape.
  • Describes the corners of axis-aligned rectangles.
  • A horizontal and vertical rectangular dimension with no specified location.
  • Axis-aligned directions: horizontal or vertical.
  • The edges of rectangular geometry.
  • Intersections of geometric objects.
  • Utilities and types for orienting layout objects.
  • Traits for placing a geometric object at a point.
  • 2-D points.
  • Integer coordinate polygons.
  • An import prelude that re-exports commonly used items.
  • Axis-aligned rectangles.
  • Rectangular ring geometry.
  • An enumeration of geometric shapes and their properties.
  • The sides of an axis-aligned rectangle.
  • Signs: positive or negative.
  • Snapping utilities (eg. snap to a grid).
  • A one-dimensional span.
  • Transformation types and traits.
  • Unions of geometric objects.

Functions§

  • Wraps the given angle to the interval [0, 360) degrees.