pub struct Capsule {
pub center1: Vec3,
pub center2: Vec3,
pub radius: f32,
}Expand description
A solid capsule can be viewed as two hemispheres connected by a cylinder. (b3Capsule)
Fields§
§center1: Vec3Local center of the first hemisphere
center2: Vec3Local center of the second hemisphere
radius: f32The radius of the hemispheres
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