[][src]Struct svo::bounds::Bounds

pub struct Bounds { /* fields omitted */ }

A cube with the origin at (bounds.x, bounds.y, bounds.z) spanning in +x, +y, +z direction with width bounds.width

Implementations

impl Bounds[src]

pub const MAX_WIDTH: u32[src]

pub fn new() -> Self[src]

pub fn from_discrete_grid(
    location: (u64, u64, u64),
    width: u64,
    gridsize: u64
) -> Self
[src]

pub fn get_position_with_gridsize(&self, gridsize: u64) -> (u64, u64, u64)[src]

pub fn get_width_with_gridsize(&self, gridsize: u64) -> u64[src]

pub fn get_position(&self) -> Vec3A[src]

pub fn get_width(&self) -> f32[src]

pub fn center(&self) -> Vec3A[src]

pub fn corner(&self, corner: Corner) -> Vec3[src]

pub fn half(&self, dir: Corner) -> Bounds[src]

pub fn intersects(&self, other: &Self) -> BoundsSpacialRelationship[src]

Trait Implementations

impl Clone for Bounds[src]

impl Debug for Bounds[src]

impl From<IndexPath> for Bounds[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.