Struct ami::BCube [−][src]
pub struct BCube { /* fields omitted */ }
Single-precision bounding cube
Methods
impl BCube
[src]
impl BCube
pub fn empty() -> BCube
[src]
pub fn empty() -> BCube
Create an new empty BCube
.
pub fn new(p: Vec3) -> BCube
[src]
pub fn new(p: Vec3) -> BCube
Create an new BCube
at position p
.
pub fn extend(&mut self, p: BBox)
[src]
pub fn extend(&mut self, p: BBox)
Extend the BCube
to accommodate for BBox
pub fn contains(&self, p: Vec3) -> bool
[src]
pub fn contains(&self, p: Vec3) -> bool
Check if BCube
contains point p
.
pub fn to_point_pair(&self) -> (Vec3, Vec3)
[src]
pub fn to_point_pair(&self) -> (Vec3, Vec3)
Get two opposite points that are the bounds of the BCube.
pub fn to_bbox(&self) -> BBox
[src]
pub fn to_bbox(&self) -> BBox
Turn into a bbox.
pub fn all_points(&self) -> [Vec3; 7]
[src]
pub fn all_points(&self) -> [Vec3; 7]
Get all 6 points or the BCube
.
pub fn pn_pair_from_normal(&self, normal: Vec3) -> (Vec3, Vec3)
[src]
pub fn pn_pair_from_normal(&self, normal: Vec3) -> (Vec3, Vec3)
Get a positive and negative pair of opposite points that are the bounds of the BCube, based around a normal.
Trait Implementations
impl Into<BCube> for BBox
[src]
impl Into<BCube> for BBox
impl Clone for BCube
[src]
impl Clone for BCube
fn clone(&self) -> BCube
[src]
fn clone(&self) -> BCube
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for BCube
[src]
impl Copy for BCube
impl PartialEq for BCube
[src]
impl PartialEq for BCube
fn eq(&self, other: &BCube) -> bool
[src]
fn eq(&self, other: &BCube) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BCube) -> bool
[src]
fn ne(&self, other: &BCube) -> bool
This method tests for !=
.
impl Debug for BCube
[src]
impl Debug for BCube