Skip to main content

Module shape

Module shape 

Source

Re-exports§

pub use crate::base::Angle;
pub use crate::base::Contains;
pub use crate::base::Side;
pub use crate::traits::CoordType;

Macros§

point
polyline

Structs§

Edge
An edge (line segment) is represented by its starting point and end point.
Path
Path is essentially a chain of line segments but with a possibly a non-zero width. It can be thought of the shape resulting by a stroke of a thick pen along the line segments.
Point
A point is defined by a x and y coordinate in the euclidean plane.
PointList
Polygon
Polyline
Rect
A rectangle which is oriented along the x an y axis and represented by its lower left and upper right corner.
Text

Enums§

PathEndType
Encoding for the type of the beginning and end of the path.

Traits§

Deref
Used for immutable dereferencing operations, like *v.
TextType
Zero
Defines an additive identity element for Self.