pub struct Bounds3 { /* private fields */ }
Implementations§
Source§impl Bounds3
impl Bounds3
pub fn new(p1: Vec3d, p2: Vec3d) -> Self
pub fn corner(&self, index: usize) -> Vec3d
pub fn union_point(&self, point: Vec3d) -> Self
pub fn union_bounds(&self, bounds: Bounds3) -> Self
pub fn is_overlapped(&self, bounds: Bounds3) -> bool
pub fn is_inside(&self, point: Vec3d) -> bool
pub fn expand(&self, delta: f64) -> Self
pub fn diagonal(&self) -> Vec3d
pub fn surface_area(&self) -> f64
pub fn volume(&self) -> f64
pub fn lerp(&self, t: Vec3d) -> Vec3d
pub fn offset(&self, point: Vec3d) -> Vec3d
pub fn intersect(&self, ray: Ray, range: Vec2d) -> bool
pub fn min(&self) -> Vec3d
pub fn max(&self) -> Vec3d
Trait Implementations§
Source§impl Transformable for Bounds3
impl Transformable for Bounds3
impl Copy for Bounds3
impl StructuralPartialEq for Bounds3
Auto Trait Implementations§
impl Freeze for Bounds3
impl RefUnwindSafe for Bounds3
impl Send for Bounds3
impl Sync for Bounds3
impl Unpin for Bounds3
impl UnwindSafe for Bounds3
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more