Trait iron_shapes::edge::EdgeIntersect
source · [−]pub trait EdgeIntersect where
Self: Sized, {
type Coord;
type IntersectionCoord;
fn edge_intersection(
&self,
other: &Self
) -> EdgeIntersection<Self::Coord, Self::IntersectionCoord, Self>;
}
Expand description
Define the intersection between two edges (i.e. line segments).
Required Associated Types
Numeric type used for expressing an intersection-point of two edges.
Often this might be the same as Coord
.
Required Methods
fn edge_intersection(
&self,
other: &Self
) -> EdgeIntersection<Self::Coord, Self::IntersectionCoord, Self>
fn edge_intersection(
&self,
other: &Self
) -> EdgeIntersection<Self::Coord, Self::IntersectionCoord, Self>
Compute intersection of two edges.