#[repr(C)]pub struct b2Capsule {
pub center1: b2Vec2,
pub center2: b2Vec2,
pub radius: f32,
}Expand description
A solid capsule can be viewed as two semicircles connected by a rectangle.
Fields§
§center1: b2Vec2Local center of the first semicircle
center2: b2Vec2Local center of the second semicircle
radius: f32The radius of the semicircles
Trait Implementations§
Auto Trait Implementations§
impl Freeze for b2Capsule
impl RefUnwindSafe for b2Capsule
impl Send for b2Capsule
impl Sync for b2Capsule
impl Unpin for b2Capsule
impl UnwindSafe for b2Capsule
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)