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

The point actually intersects with the object.

There is exactly one place on this object which is closest to the point.

There are two or more (possibly infinite or undefined) possible points.

Methods

impl<F: Float> Closest<F>
[src]

[src]

Compare two Closests relative to p and return a copy of the best one.

Trait Implementations

impl<F: Debug + Float> Debug for Closest<F>
[src]

[src]

Formats the value using the given formatter.

impl<F: Clone + Float> Clone for Closest<F>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<F: Copy + Float> Copy for Closest<F>
[src]

impl<F: PartialEq + Float> PartialEq for Closest<F>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.