Type Alias spade::handles::VoronoiFace
source · pub type VoronoiFace<'a, V, DE, UE, F> = DynamicHandleImpl<'a, V, DE, UE, F, VoronoiFaceTag, PossiblyOuterTag>;
Expand description
A handle to a face of the voronoi diagram.
Aliased Type§
struct VoronoiFace<'a, V, DE, UE, F> { /* private fields */ }
Implementations§
source§impl<'a, V, DE, UE, F> VoronoiFace<'a, V, DE, UE, F>
impl<'a, V, DE, UE, F> VoronoiFace<'a, V, DE, UE, F>
sourcepub fn as_delaunay_vertex(&self) -> VertexHandle<'a, V, DE, UE, F>
pub fn as_delaunay_vertex(&self) -> VertexHandle<'a, V, DE, UE, F>
Converts this face into its dual vertex of the Delaunay Triangulation.
sourcepub fn adjacent_edges(
&self
) -> impl DoubleEndedIterator<Item = DirectedVoronoiEdge<'a, V, DE, UE, F>>
pub fn adjacent_edges( &self ) -> impl DoubleEndedIterator<Item = DirectedVoronoiEdge<'a, V, DE, UE, F>>
Returns an iterator that returns all edges adjacent to this face.
The edges are returned in clockwise order.