Type Alias spade::handles::UndirectedVoronoiEdge

source ·
pub type UndirectedVoronoiEdge<'a, V, DE, UE, F> = DynamicHandleImpl<'a, V, DE, UE, F, UndirectedVoronoiEdgeTag, InnerTag>;
Expand description

A handle to an undirected edge of the Voronoi diagram.

Aliased Type§

struct UndirectedVoronoiEdge<'a, V, DE, UE, F> { /* private fields */ }

Implementations§

source§

impl<'a, V, DE, UE, F> UndirectedVoronoiEdge<'a, V, DE, UE, F>

source

pub fn vertices(&self) -> [VoronoiVertex<'a, V, DE, UE, F>; 2]

Returns the edge’s two vertices.

The vertices are returned in any order.

source

pub fn as_directed(&self) -> DirectedVoronoiEdge<'a, V, DE, UE, F>

Converts this undirected handle into a directed edge handle.

source

pub fn as_delaunay_edge(&self) -> UndirectedEdgeHandle<'a, V, DE, UE, F>

Returns the dual edge of the Delaunay triangulation.