Trait sif_kdtree::Object

source ·
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 a real space defined via the Point trait

Required Associated Types§

source

type Point: Point

The Point implementation used to represent the position of these objects.

Required Methods§

source

fn position(&self) -> &Self::Point

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.

Implementors§