Struct ncollide2d::shape::Capsule[][src]

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

SupportMap description of a capsule shape with its principal axis aligned with the y axis.

Methods

impl<N: Real> Capsule<N>
[src]

Creates a new capsule.

Arguments:

  • half_height - the half length of the capsule along the y axis.
  • radius - radius of the rounded part of the capsule.

The capsule half length along the y axis.

The radius of the capsule's rounded part.

Trait Implementations

impl<N: Real> HasBoundingVolume<N, BoundingSphere<N>> for Capsule<N>
[src]

The bounding volume of self transformed by m.

impl<N: Real> PointQuery<N> for Capsule<N>
[src]

Projects a point on self transformed by m.

Projects a point on the boundary of self transformed by m and retuns the id of the feature the point was projected on. Read more

Computes the minimal distance between a point and self transformed by m.

Tests if the given point is inside of self transformed by m.

impl<N: Real> RayCast<N> for Capsule<N>
[src]

Computes the time of impact, and normal between this transformed shape and a ray.

Computes the time of impact between this transform shape and a ray.

Tests whether a ray intersects this transformed shape.

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

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

This method tests for !=.

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Real> SupportMap<N> for Capsule<N>
[src]

Evaluates the support function of the object. Read more

Same as self.support_point except that dir is normalized.

impl<N: Real> ToPolyline<N> for Capsule<N>
[src]

Builds a triangle mesh from this shape. Read more

Auto Trait Implementations

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

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