Trait iron_shapes::concepts::Segment
source · [−]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 Point: PointConcept<C>
type Point: PointConcept<C>
Type used to represent the end points of the segment.
Required Methods
fn get_point(&self, dir: Direction1D) -> Self::Point
fn get_point(&self, dir: Direction1D) -> Self::Point
Get the start (LOW) or end (HIGH) point of the segment.