Struct geom::find_closest::FindClosest[][src]

pub struct FindClosest<K> {
    geometries: BTreeMap<K, LineString<f64>>,
    quadtree: QuadTree<K>,
}
Expand description

A quad-tree to quickly find the closest points to some polylines.

Fields

geometries: BTreeMap<K, LineString<f64>>quadtree: QuadTree<K>

Implementations

Creates the quad-tree, limited to points contained in the boundary.

Add an object to the quadtree, remembering some key associated with the points.

For every object within some distance of a query point, return the (object’s key, point on the object’s polyline, distance away).

Finds the closest point on the existing geometry to the query pt.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.