Struct spade::delaunay::DelaunayWalkLocate
source · pub struct DelaunayWalkLocate { /* private fields */ }
Expand description
Locate strategy that walks along the edges of a triangulation until the target point is found.
This approach takes O(sqrt(n)) time on average, with a worst case of O(n) and a best case of O(1). This strategy works especially well if subsequent queries like insertion, interpolation or locate queries, are performed close to each other, as the result of the last query operation will be used as hint for the next operation.
Trait Implementations
sourceimpl Clone for DelaunayWalkLocate
impl Clone for DelaunayWalkLocate
sourcefn clone(&self) -> DelaunayWalkLocate
fn clone(&self) -> DelaunayWalkLocate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DelaunayWalkLocate
impl Debug for DelaunayWalkLocate
sourceimpl Default for DelaunayWalkLocate
impl Default for DelaunayWalkLocate
sourceimpl<T: PointN> DelaunayLocateStructure<T> for DelaunayWalkLocate
impl<T: PointN> DelaunayLocateStructure<T> for DelaunayWalkLocate
sourcefn insert_vertex_entry(&mut self, entry: VertexEntry<T>)
fn insert_vertex_entry(&mut self, entry: VertexEntry<T>)
This method is called when a new vertex entry has been inserted.
sourcefn update_vertex_entry(&mut self, _: VertexEntry<T>)
fn update_vertex_entry(&mut self, _: VertexEntry<T>)
This method is called when a vertex has been updated.
sourcefn remove_vertex_entry(&mut self, _: &VertexEntry<T>)
fn remove_vertex_entry(&mut self, _: &VertexEntry<T>)
This method is callend when a vertex has been removed.
sourcefn find_close_handle(&self, _: &T) -> FixedVertexHandle
fn find_close_handle(&self, _: &T) -> FixedVertexHandle
Returns, if possible, a vertex handle that is close to the given point.
sourcefn new_query_result(&self, entry: FixedVertexHandle)
fn new_query_result(&self, entry: FixedVertexHandle)
Notifies the locate structure about the result of a query.
Auto Trait Implementations
impl RefUnwindSafe for DelaunayWalkLocate
impl Send for DelaunayWalkLocate
impl Sync for DelaunayWalkLocate
impl Unpin for DelaunayWalkLocate
impl UnwindSafe for DelaunayWalkLocate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.