pub struct BoxUnaligned3D {
pub center: Point3D,
pub y_dir: Norm3D,
pub z_dir: Norm3D,
pub size: [Positive; 3],
}
Expand description
Not axis aligned Box in 3D space
Fields§
§center: Point3D
§y_dir: Norm3D
§z_dir: Norm3D
§size: [Positive; 3]
Implementations§
Source§impl BoxUnaligned3D
impl BoxUnaligned3D
pub fn new_from_bb(bb: &BoundingBox3D) -> Self
pub fn new_from_z_rotation<P>(
center: &P,
size: [Positive; 3],
rotation: f64,
) -> Selfwhere
P: Is3D,
pub fn x_dir(&self) -> Norm3D
Trait Implementations§
Source§impl Clone for BoxUnaligned3D
impl Clone for BoxUnaligned3D
Source§fn clone(&self) -> BoxUnaligned3D
fn clone(&self) -> BoxUnaligned3D
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl HasBoundingBox3D for BoxUnaligned3D
impl HasBoundingBox3D for BoxUnaligned3D
Source§fn bounding_box(&self) -> BoundingBox3D
fn bounding_box(&self) -> BoundingBox3D
Should return the bounding box
Source§impl HasBoundingBox3DMaybe for BoxUnaligned3D
impl HasBoundingBox3DMaybe for BoxUnaligned3D
Source§fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
Should return the bounding box if it can be calculated
Source§impl IsMovable3D for BoxUnaligned3D
impl IsMovable3D for BoxUnaligned3D
Source§impl IsSATObject for BoxUnaligned3D
impl IsSATObject for BoxUnaligned3D
Auto Trait Implementations§
impl Freeze for BoxUnaligned3D
impl RefUnwindSafe for BoxUnaligned3D
impl Send for BoxUnaligned3D
impl Sync for BoxUnaligned3D
impl Unpin for BoxUnaligned3D
impl UnwindSafe for BoxUnaligned3D
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