[−][src]Struct plop::prelude::BCube
Single-precision bounding cube
Methods
impl BCube
[src]
pub fn empty() -> BCube
[src]
Create an new empty BCube
.
pub fn new(p: Vector) -> BCube
[src]
Create an new BCube
at position p
.
pub fn extend(&mut self, p: BBox)
[src]
Extend the BCube
to accommodate for BBox
pub fn contains(&self, p: Vector) -> bool
[src]
Check if BCube
contains point p
.
pub fn to_point_pair(&self) -> (Vector, Vector)
[src]
Get two opposite points that are the bounds of the BCube.
pub fn to_bbox(&self) -> BBox
[src]
Turn into a bbox.
pub fn all_points(&self) -> [Vector; 7]
[src]
Get all 6 points or the BCube
.
pub fn pn_pair_from_normal(&self, normal: Vector) -> (Vector, Vector)
[src]
Get a positive and negative pair of opposite points that are the bounds of the BCube, based around a normal.
Trait Implementations
impl Copy for BCube
[src]
impl Clone for BCube
[src]
fn clone(&self) -> BCube
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for BCube
[src]
impl Into<BCube> for BBox
[src]
impl PartialEq<BCube> for BCube
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,