pub struct Bounds3 { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Transformable for Bounds3
impl Transformable for Bounds3
impl Copy for Bounds3
impl StructuralPartialEq for Bounds3
Auto Trait Implementations
impl RefUnwindSafe for Bounds3
impl Send for Bounds3
impl Sync for Bounds3
impl Unpin for Bounds3
impl UnwindSafe for Bounds3
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more