pub trait EdgeIntersect: Sized {
type Coord;
type IntersectionCoord;
// Required method
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§
Sourcetype IntersectionCoord
type IntersectionCoord
Numeric type used for expressing an intersection-point of two edges.
Often this might be the same as Coord
.
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.