Struct spectra::scene::aabb::AABB [−][src]
Fields
lower: V3<f32>
upper: V3<f32>
Methods
impl AABB
[src]
impl AABB
pub fn from_vertices<I>(vertices: I) -> Option<Self> where
I: Iterator<Item = V3<f32>>,
[src]
pub fn from_vertices<I>(vertices: I) -> Option<Self> where
I: Iterator<Item = V3<f32>>,
Construct an AABB from vertices. Return None
if there’s no vertex.
pub fn from_aabbs<I>(aabbs: I) -> Option<Self> where
I: Iterator<Item = AABB>,
[src]
pub fn from_aabbs<I>(aabbs: I) -> Option<Self> where
I: Iterator<Item = AABB>,
Construct an AABB from AABBs. Return None
if there’s no AABB.
Trait Implementations
impl Clone for AABB
[src]
impl Clone for AABB
fn clone(&self) -> AABB
[src]
fn clone(&self) -> AABB
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 AABB
[src]
impl Copy for AABB
impl Debug for AABB
[src]
impl Debug for AABB
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for AABB
[src]
impl PartialEq for AABB