Enum geo::Closest
[−]
[src]
pub enum Closest<F: Float> { Intersection(Point<F>), SinglePoint(Point<F>), Indeterminate, }
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]
pub fn best_of_two(&self, other: &Self, p: &Point<F>) -> Self
[src]
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + Float> Clone for Closest<F>
[src]
fn clone(&self) -> Closest<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more