#[repr(C)]pub struct b2AABB {
pub lowerBound: b2Vec2,
pub upperBound: b2Vec2,
}Expand description
An axis aligned bounding box.
Fields§
§lowerBound: b2Vec2< the lower vertex
upperBound: b2Vec2< the upper vertex
Implementations§
Source§impl b2AABB
impl b2AABB
Sourcepub fn GetExtents(&self) -> b2Vec2
pub fn GetExtents(&self) -> b2Vec2
Get the extents of the AABB (half-widths).
Sourcepub fn GetPerimeter(&self) -> f32
pub fn GetPerimeter(&self) -> f32
Get the perimeter length
Sourcepub fn Combine1(self: Pin<&mut Self>, aabb1: &b2AABB, aabb2: &b2AABB)
pub fn Combine1(self: Pin<&mut Self>, aabb1: &b2AABB, aabb2: &b2AABB)
Combine two AABBs into this one.
pub unsafe fn RayCast( &self, output: *mut b2RayCastOutput, input: &b2RayCastInput, ) -> bool
Trait Implementations§
Source§impl ExternType for b2AABB
impl ExternType for b2AABB
Source§impl MakeCppStorage for b2AABB
impl MakeCppStorage for b2AABB
impl UniquePtrTarget for b2AABB
impl VectorElement for b2AABB
impl WeakPtrTarget for b2AABB
Auto Trait Implementations§
impl Freeze for b2AABB
impl RefUnwindSafe for b2AABB
impl Send for b2AABB
impl Sync for b2AABB
impl Unpin for b2AABB
impl UnsafeUnpin for b2AABB
impl UnwindSafe for b2AABB
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