Struct ncollide2d::shape::Ball[][src]

pub struct Ball<N: Real> { /* fields omitted */ }

A Ball shape.

Methods

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

Creates a new ball from its radius and center.

The ball radius.

Trait Implementations

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Ball<N>
[src]

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

impl<N: Real> PointQuery<N> for Ball<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 Ball<N>
[src]

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

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

Tests whether a ray intersects this transformed shape.

impl<N: PartialEq + Real> PartialEq for Ball<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 + Real> Debug for Ball<N>
[src]

Formats the value using the given formatter. Read more

impl<N: Clone + Real> Clone for Ball<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Evaluates the support function of the object. Read more

Same as self.support_point except that dir is normalized.

impl<N: Real> Shape<N> for Ball<N>
[src]

The AABB of self.

The bounding sphere of self.

The RayCast implementation of self.

The PointQuery implementation of self.

The support mapping of self if applicable.

Whether self uses a supportmapping-based representation.

The transform of a specific subshape. Read more

The convex polyhedron representation of self if applicable.

The composite shape representation of self if applicable.

Whether self uses a conve polyhedron representation.

Whether self uses a composite shape-based representation.

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

Builds a triangle mesh from this shape. Read more

Auto Trait Implementations

impl<N> Send for Ball<N>

impl<N> Sync for Ball<N>