[][src]Struct plop::prelude::BCube

pub struct BCube { /* fields omitted */ }

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_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

impl Send for BCube

impl Sync for BCube

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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