pub trait Segment<C: CoordinateConcept> {
    type Point: PointConcept<C>;

    fn get_point(&self, dir: Direction1D) -> Self::Point;

    fn start(&self) -> Self::Point { ... }
    fn end(&self) -> Self::Point { ... }
}
Expand description

A polygon edge.

Required Associated Types

Type used to represent the end points of the segment.

Required Methods

Get the start (LOW) or end (HIGH) point of the segment.

Provided Methods

Shortcut to get the ‘low’ end of the segment.

Shortcut to get the ‘high’ end of the segment.

Implementors