Trait libreda_db::layout::prelude::EdgeIntersect

source ·
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§

source

type Coord

Numeric type used for expressing the end-point coordinates of the edge.

source

type IntersectionCoord

Numeric type used for expressing an intersection-point of two edges. Often this might be the same as Coord.

Required Methods§

source

fn edge_intersection( &self, other: &Self ) -> EdgeIntersection<Self::Coord, Self::IntersectionCoord, Self>

Compute intersection of two edges.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> EdgeIntersect for REdge<T>
where T: CoordinateType,

§

type Coord = T

§

type IntersectionCoord = T