Struct ncollide3d::bounding_volume::BoundingSphere[][src]

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

A Bounding Sphere.

Methods

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

Creates a new bounding sphere.

The bounding sphere center.

The bounding sphere radius.

Transforms this bounding sphere by m.

Trait Implementations

impl<N: Debug + Real> Debug for BoundingSphere<N>
[src]

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Real> BoundingVolume<N> for BoundingSphere<N>
[src]

Returns a point inside of this bounding volume. This is ideally its center.

Checks if this bounding volume intersect with another one.

Checks if this bounding volume contains another one.

Merges this bounding volume with another one. The merge is done in-place.

Merges this bounding volume with another one.

Enlarges this bounding volume.

Creates a new, enlarged version, of this bounding volume.

Tighten this bounding volume.

Creates a new, tightened version, of this bounding volume.

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

The bounding volume of self transformed by m.

impl<N: Real> HasBoundingVolume<N, BoundingSphere<N>> for Cone<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> HasBoundingVolume<N, BoundingSphere<N>> for Cylinder<N>
[src]

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

impl<N: Real> PointQuery<N> for BoundingSphere<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 BoundingSphere<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.

Computes time of impact, normal, and texture coordinates (uv) between this transformed shape and a ray. Read more

Tests whether a ray intersects this transformed shape.

Auto Trait Implementations

impl<N> Send for BoundingSphere<N>

impl<N> Sync for BoundingSphere<N>