[−][src]Struct svo::bounds::Bounds
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]
location: (u64, u64, u64),
width: u64,
gridsize: u64
) -> Self
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
Auto Trait Implementations
impl RefUnwindSafe for Bounds
[src]
impl Send for Bounds
[src]
impl Sync for Bounds
[src]
impl Unpin for Bounds
[src]
impl UnwindSafe for Bounds
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,