pub struct Bounds3D(/* private fields */);
Expand description
A 3D bounds is a 3D bounding box with a minimum and maximum corner.
Implementations§
Source§impl Bounds3D
impl Bounds3D
Sourcepub fn extend_by_point(&mut self, p: Vec3)
pub fn extend_by_point(&mut self, p: Vec3)
Extend these bounds by point.
Sourcepub fn corners(&self) -> Bounds3DCorners ⓘ
pub fn corners(&self) -> Bounds3DCorners ⓘ
Corner iterator.
Trait Implementations§
Source§impl Transformed3D for Bounds3D
impl Transformed3D for Bounds3D
Source§fn transformed_3d(&self, _: &RenderResolution, mat: &Mat4) -> Self
fn transformed_3d(&self, _: &RenderResolution, mat: &Mat4) -> Self
Transform from matrix.
Auto Trait Implementations§
impl Freeze for Bounds3D
impl RefUnwindSafe for Bounds3D
impl Send for Bounds3D
impl Sync for Bounds3D
impl Unpin for Bounds3D
impl UnwindSafe for Bounds3D
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more