Crate line_2d

source ·

Structs

Enums

  • 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

  • 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.
  • 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 Definitions