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

pub trait FaceCentroid: Geometry {
    type Centroid;
    fn centroid<M>(
        face: FaceView<M, Self>
    ) -> Result<Self::Centroid, GraphError>
    where
        M: Reborrow,
        M::Target: AsStorage<ArcPayload<Self>> + AsStorage<FacePayload<Self>> + AsStorage<VertexPayload<Self>>
; }

Associated Types

Loading content...

Required methods

fn centroid<M>(face: FaceView<M, Self>) -> Result<Self::Centroid, GraphError> where
    M: Reborrow,
    M::Target: AsStorage<ArcPayload<Self>> + AsStorage<FacePayload<Self>> + AsStorage<VertexPayload<Self>>, 

Loading content...

Implementors

impl<G> FaceCentroid for G where
    G: Geometry,
    G::Vertex: Average
[src]

type Centroid = G::Vertex

Loading content...