pub struct Capsule<S> { /* private fields */ }
Expand description
Capsule primitive Capsule body is aligned with the Y axis, with local origin in the center of the capsule.
Implementations§
Trait Implementations§
Source§impl<S> ComputeBound<Aabb3<S>> for Capsule<S>where
S: BaseFloat,
impl<S> ComputeBound<Aabb3<S>> for Capsule<S>where
S: BaseFloat,
Source§fn compute_bound(&self) -> Aabb3<S>
fn compute_bound(&self) -> Aabb3<S>
Compute the bounding volume
Source§impl<S> ComputeBound<Sphere<S>> for Capsule<S>where
S: BaseFloat,
impl<S> ComputeBound<Sphere<S>> for Capsule<S>where
S: BaseFloat,
Source§fn compute_bound(&self) -> Sphere<S>
fn compute_bound(&self) -> Sphere<S>
Compute the bounding volume
Source§impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Capsule<S>where
S: BaseFloat,
impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Capsule<S>where
S: BaseFloat,
Source§fn intersects(&self, r: &Ray3<S>) -> bool
fn intersects(&self, r: &Ray3<S>) -> bool
Intersection test
Source§impl<S> From<Capsule<S>> for Primitive3<S>where
S: BaseFloat,
impl<S> From<Capsule<S>> for Primitive3<S>where
S: BaseFloat,
Source§fn from(capsule: Capsule<S>) -> Primitive3<S>
fn from(capsule: Capsule<S>) -> Primitive3<S>
Converts to this type from the input type.
impl<S> StructuralPartialEq for Capsule<S>
Auto Trait Implementations§
impl<S> Freeze for Capsule<S>where
S: Freeze,
impl<S> RefUnwindSafe for Capsule<S>where
S: RefUnwindSafe,
impl<S> Send for Capsule<S>where
S: Send,
impl<S> Sync for Capsule<S>where
S: Sync,
impl<S> Unpin for Capsule<S>where
S: Unpin,
impl<S> UnwindSafe for Capsule<S>where
S: UnwindSafe,
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