pub struct Obb {
pub center: Vec3,
pub axis0: Vec3,
pub axis1: Vec3,
pub axis2: Vec3,
pub half_extents: Vec3,
}Expand description
Oriented bounding box.
Fields§
§center: Vec3Box center.
axis0: Vec3First local box axis.
axis1: Vec3Second local box axis.
axis2: Vec3Third local box axis.
half_extents: Vec3Half of the box dimensions along each local axis.
Implementations§
Trait Implementations§
impl Copy for Obb
impl StructuralPartialEq for Obb
Auto Trait Implementations§
impl Freeze for Obb
impl RefUnwindSafe for Obb
impl Send for Obb
impl Sync for Obb
impl Unpin for Obb
impl UnsafeUnpin for Obb
impl UnwindSafe for Obb
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