Enum geo::Closest [−][src]
The result of trying to find the closest spot on an object to a point.
Variants
Intersection(Point<F>)
The point actually intersects with the object.
SinglePoint(Point<F>)
There is exactly one place on this object which is closest to the point.
Indeterminate
There are two or more (possibly infinite or undefined) possible points.
Methods
impl<F: Float> Closest<F>
[src]
impl<F: Float> Closest<F>
pub fn best_of_two(&self, other: &Self, p: &Point<F>) -> Self
[src]
pub fn best_of_two(&self, other: &Self, p: &Point<F>) -> Self
Compare two Closest
s relative to p
and return a copy of the best
one.
Trait Implementations
impl<F: Debug + Float> Debug for Closest<F>
[src]
impl<F: Debug + Float> Debug for Closest<F>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<F: Clone + Float> Clone for Closest<F>
[src]
impl<F: Clone + Float> Clone for Closest<F>
fn clone(&self) -> Closest<F>
[src]
fn clone(&self) -> Closest<F>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<F: Copy + Float> Copy for Closest<F>
[src]
impl<F: Copy + Float> Copy for Closest<F>
impl<F: PartialEq + Float> PartialEq for Closest<F>
[src]
impl<F: PartialEq + Float> PartialEq for Closest<F>