Crate line_2d

Source

Structs§

CardinalIter
CardinalNodeIter
CardinalStepIter
Config
Coord
General purpose coordinate
InfiniteCardinalIter
InfiniteCardinalNodeIter
InfiniteCardinalStepIter
InfiniteConfig
InfiniteIter
InfiniteNodeIter
InfiniteStepIter
Iter
LineSegment
A straight line between two different points
Node
NodeIter
StartAndEndAreTheSame
StepIter
ZeroDelta

Enums§

Direction
LineSegmentOrPoint
The LineSegment type can’t represent line segments of 0 length. It’s often convenient for users to treat 0-length line segments as points. This type represent line segments which can be of 0 length, treating such lines as single points.

Functions§

coords_between
Returns an iterator over all the coordinates between start and end (inclusive) along a straight (rasterized) line which includes ordinal steps. start and end may be the same.
coords_between_cardinal
Returns an iterator over all the coordinates between start and end (inclusive) along a straight (rasterized) line which includes only cardinal steps. start and end may be the same.

Type Aliases§

LineSegmentOrPointCardinalIter
LineSegmentOrPointIter