pub struct Capsule {
pub center1: Vec2,
pub center2: Vec2,
pub radius: f32,
}Expand description
A solid capsule can be viewed as two semicircles connected by a rectangle. (b2Capsule)
Fields§
§center1: Vec2Local center of the first semicircle
center2: Vec2Local center of the second semicircle
radius: f32The radius of the semicircles
Trait Implementations§
impl Copy for Capsule
impl StructuralPartialEq for Capsule
Auto Trait Implementations§
impl Freeze for Capsule
impl RefUnwindSafe for Capsule
impl Send for Capsule
impl Sync for Capsule
impl Unpin for Capsule
impl UnsafeUnpin for Capsule
impl UnwindSafe for Capsule
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