Module iron_shapes::edge

source ·
Expand description

An edge is a line segment from a start-point to a end-point.

Re-exports

Structs

  • An edge (line segment) is represented by its starting point and end point.

Enums

  • Return type for the edge-edge intersection functions. Stores all possible results of an edge to edge intersection.
  • Return type for the line-line intersection functions. Stores all possible results of a line to line intersection.

Traits

  • Get the endpoints of an edge.
  • Define the intersection between two edges (i.e. line segments).
  • Iterate over edges. For an n-gon this would produce n edges.