//! Closest-point projection onto a path.
//!
//! This module defines the [`Project`] trait for finding the arc-length of the
//! point on a path nearest to a given query point, along with a convenience
//! method `closest_point` that returns the actual position.
use cratePath;
/// Project a query point onto a path to find the nearest position.
///
/// Implementers should return the arc-length parameter of the closest point.
/// The default `closest_point` method combines `project` with `sample_at` to
/// produce the actual position.