pub struct CapsuleProxy {
pub center_a: [f32; 3],
pub center_b: [f32; 3],
pub radius: f32,
pub label: String,
}Expand description
A capsule collision primitive (line segment + radius).
Fields§
§center_a: [f32; 3]Bottom center of the capsule.
center_b: [f32; 3]Top center of the capsule.
radius: f32Radius of the capsule.
label: StringLabel (e.g. “torso”, “head”, “arm_l”).
Implementations§
Trait Implementations§
Source§impl Clone for CapsuleProxy
impl Clone for CapsuleProxy
Source§fn clone(&self) -> CapsuleProxy
fn clone(&self) -> CapsuleProxy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapsuleProxy
impl Debug for CapsuleProxy
Source§impl PartialEq for CapsuleProxy
impl PartialEq for CapsuleProxy
impl StructuralPartialEq for CapsuleProxy
Auto Trait Implementations§
impl Freeze for CapsuleProxy
impl RefUnwindSafe for CapsuleProxy
impl Send for CapsuleProxy
impl Sync for CapsuleProxy
impl Unpin for CapsuleProxy
impl UnsafeUnpin for CapsuleProxy
impl UnwindSafe for CapsuleProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more