[][src]Trait plexus::geometry::compose::EdgeMidpoint

pub trait EdgeMidpoint: Geometry {
    type Midpoint;
    fn midpoint<M>(
        edge: EdgeView<M, Self>
    ) -> Result<Self::Midpoint, GraphError>
    where
        M: Reborrow,
        M::Target: AsStorage<ArcPayload<Self>> + AsStorage<EdgePayload<Self>> + AsStorage<VertexPayload<Self>>
; }

Associated Types

Loading content...

Required methods

fn midpoint<M>(edge: EdgeView<M, Self>) -> Result<Self::Midpoint, GraphError> where
    M: Reborrow,
    M::Target: AsStorage<ArcPayload<Self>> + AsStorage<EdgePayload<Self>> + AsStorage<VertexPayload<Self>>, 

Loading content...

Implementors

impl<G> EdgeMidpoint for G where
    G: Geometry,
    G::Vertex: AsPosition,
    VertexPosition<G>: Clone + Interpolate
[src]

type Midpoint = <VertexPosition<G> as Interpolate>::Output

Loading content...