Crate geometry

Crate 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§

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

Functions§

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