Trait RTreeElement

Source
pub trait RTreeElement {
    // Required methods
    fn bbox(&self) -> BoundingBox;
    fn distance_to(&self, coordinate: &FPCoordinate) -> f64;
    fn center(&self) -> &FPCoordinate;
}
Expand description

Trait for elements that can be stored in an RTree

Required Methods§

Source

fn bbox(&self) -> BoundingBox

Returns the bounding box of this element

Source

fn distance_to(&self, coordinate: &FPCoordinate) -> f64

Returns the distance from this element to the given coordinate

Source

fn center(&self) -> &FPCoordinate

Returns the center coordinate of this element

Implementations on Foreign Types§

Source§

impl RTreeElement for (FPCoordinate, PartitionID)

Source§

fn bbox(&self) -> BoundingBox

Source§

fn distance_to(&self, coordinate: &FPCoordinate) -> f64

Source§

fn center(&self) -> &FPCoordinate

Implementors§