pub trait Object {
type Point: Point;
// Required method
fn position(&self) -> &Self::Point;
}
Expand description
Defines the objects which can be organized in a KdTree by positioning them in the vector space defined via the Point trait
The Point implementation used to represent the position of these objects
Return the position associated with this object
Note that calling this method is assumed to be cheap, returning a reference to a point stored in the interior of the object.