pub type DirectedVoronoiEdge<'a, V, DE, UE, F> = DynamicHandleImpl<'a, V, DE, UE, F, DirectedVoronoiEdgeTag, InnerTag>;
Expand description
A handle to a directed edge of the Voronoi diagram.
Several methods are defined to explore adjacent edges, faces and vertices:
Aliased Type§
struct DirectedVoronoiEdge<'a, V, DE, UE, F> { /* private fields */ }
Implementations§
Source§impl<'a, V, DE, UE, F> DirectedVoronoiEdge<'a, V, DE, UE, F>
impl<'a, V, DE, UE, F> DirectedVoronoiEdge<'a, V, DE, UE, F>
Sourcepub fn to(&self) -> VoronoiVertex<'a, V, DE, UE, F>
pub fn to(&self) -> VoronoiVertex<'a, V, DE, UE, F>
Returns the voronoi edge’s destination.
Sourcepub fn from(&self) -> VoronoiVertex<'a, V, DE, UE, F>
pub fn from(&self) -> VoronoiVertex<'a, V, DE, UE, F>
Returns the voronoi vertex from which this edge originates.
Sourcepub fn face(&self) -> VoronoiFace<'a, V, DE, UE, F>
pub fn face(&self) -> VoronoiFace<'a, V, DE, UE, F>
Returns the Voronoi face to the left of this Voronoi edge
Sourcepub fn as_undirected(&self) -> UndirectedVoronoiEdge<'a, V, DE, UE, F>
pub fn as_undirected(&self) -> UndirectedVoronoiEdge<'a, V, DE, UE, F>
Converts this directed edge handle into an undirected edge handle.
See also the handles module for more information.
Sourcepub fn as_delaunay_edge(&self) -> DirectedEdgeHandle<'a, V, DE, UE, F>
pub fn as_delaunay_edge(&self) -> DirectedEdgeHandle<'a, V, DE, UE, F>
Returns the directed dual edge of the underlying Delaunay triangulation.
The dual edge is always orthogonal to this edge.
Shows various inner voronoi edges (blue) and their dual Delaunay edges (orange)
Sourcepub fn next(&self) -> DirectedVoronoiEdge<'a, V, DE, UE, F>
pub fn next(&self) -> DirectedVoronoiEdge<'a, V, DE, UE, F>
Returns the edge that is connected to this edge in counterclockwise order.
See also prev
Sourcepub fn prev(&self) -> DirectedVoronoiEdge<'a, V, DE, UE, F>
pub fn prev(&self) -> DirectedVoronoiEdge<'a, V, DE, UE, F>
Returns the edge that is connected to this edge in clockwise order.
See also next
Source§impl<V, DE, UE, F> DirectedVoronoiEdge<'_, V, DE, UE, F>where
V: HasPosition,
impl<V, DE, UE, F> DirectedVoronoiEdge<'_, V, DE, UE, F>where
V: HasPosition,
Sourcepub fn direction_vector(&self) -> Point2<V::Scalar>
pub fn direction_vector(&self) -> Point2<V::Scalar>
Returns a vector that is parallel to the voronoi edge.
This vector is obtained by rotating the dual Delaunay edge by 90° degree The returned vector is not necessarily normalized.