Struct collision::primitive::Capsule [] [src]

pub struct Capsule<S> { /* fields omitted */ }

Capsule primitive Capsule body is aligned with the Y axis, with local origin in the center of the capsule.

Methods

impl<S> Capsule<S> where
    S: BaseFloat
[src]

[src]

Create a new Capsule

[src]

Get radius

[src]

Get height

Trait Implementations

impl<S: Debug> Debug for Capsule<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: Clone> Clone for Capsule<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: PartialEq> PartialEq for Capsule<S>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<S> Primitive for Capsule<S> where
    S: BaseFloat
[src]

Point type

[src]

Get the support point on the shape in a given direction. Read more

impl<S> ComputeBound<Aabb3<S>> for Capsule<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Sphere<S>> for Capsule<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> Discrete<Ray3<S>> for Capsule<S> where
    S: BaseFloat
[src]

[src]

Intersection test

impl<S> Continuous<Ray3<S>> for Capsule<S> where
    S: BaseFloat
[src]

Result returned by the intersection test

[src]

Intersection test

impl<S> From<Capsule<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<S> Send for Capsule<S> where
    S: Send

impl<S> Sync for Capsule<S> where
    S: Sync