[][src]Trait smartpool_spatial::CoordSpace

pub trait CoordSpace {
    type Coord;
    fn raw(&self, coord: Self::Coord) -> [u64; 3];
}

Under the hood, the manhattan tree always operates with u64 coordinates. Certain panics are known to occur when the u64 if at high magnitudes. As such, operations on manhattan trees are generic over a coordinate space, which defines a coordinate type, and code for converting that coordinate type into a [u64; 3] in which the 4 highest-endian bits are 0.

Associated Types

type Coord

Loading content...

Required methods

fn raw(&self, coord: Self::Coord) -> [u64; 3]

Loading content...

Implementations on Foreign Types

impl CoordSpace for U32Space[src]

type Coord = [u32; 3]

impl CoordSpace for F32Space[src]

type Coord = [f32; 3]

impl CoordSpace for I32Space[src]

type Coord = [i32; 3]

impl CoordSpace for F64Space[src]

type Coord = [f64; 3]

impl CoordSpace for I56Space[src]

type Coord = [i64; 3]

impl CoordSpace for U56Space[src]

type Coord = [u64; 3]

Loading content...

Implementors

Loading content...