Struct ami::BCube [−][src]
pub struct BCube { /* fields omitted */ }Bounding cube
Methods
impl BCube[src]
impl BCubepub fn empty() -> BCube[src]
pub fn empty() -> BCubeCreate an new empty BCube.
pub fn new(p: Vec3) -> BCube[src]
pub fn new(p: Vec3) -> BCubeCreate 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) -> boolCheck 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) -> BBoxTurn 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 BBoximpl Clone for BCube[src]
impl Clone for BCubefn clone(&self) -> BCube[src]
fn clone(&self) -> BCubeReturns 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 BCubeimpl PartialEq for BCube[src]
impl PartialEq for BCubefn eq(&self, other: &BCube) -> bool[src]
fn eq(&self, other: &BCube) -> boolThis 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) -> boolThis method tests for !=.
impl Debug for BCube[src]
impl Debug for BCube