Trait heron::rapier_plugin::rapier::ncollide::bounding_volume::BoundingVolume [−][src]
Trait of bounding volumes.
Bounding volumes are coarse approximations of shapes. It usually have constant time intersection, inclusion test. Two bounding volume must also be mergeable into a bigger bounding volume.
Required methods
pub fn center(&self) -> Point<N, U3>
[src]
Returns a point inside of this bounding volume. This is ideally its center.
pub fn intersects(&self, &Self) -> bool
[src]
Checks if this bounding volume intersect with another one.
pub fn contains(&self, &Self) -> bool
[src]
Checks if this bounding volume contains another one.
pub fn merge(&mut self, &Self)
[src]
Merges this bounding volume with another one. The merge is done in-place.
pub fn merged(&self, &Self) -> Self
[src]
Merges this bounding volume with another one.
pub fn loosen(&mut self, N)
[src]
Enlarges this bounding volume.
pub fn loosened(&self, N) -> Self
[src]
Creates a new, enlarged version, of this bounding volume.
pub fn tighten(&mut self, N)
[src]
Tighten this bounding volume.
pub fn tightened(&self, N) -> Self
[src]
Creates a new, tightened version, of this bounding volume.
Implementors
impl<N> BoundingVolume<N> for AABB<N> where
N: RealField,
[src]
N: RealField,
pub fn center(&self) -> Point<N, U3>
[src]
pub fn intersects(&self, other: &AABB<N>) -> bool
[src]
pub fn contains(&self, other: &AABB<N>) -> bool
[src]
pub fn merge(&mut self, other: &AABB<N>)
[src]
pub fn merged(&self, other: &AABB<N>) -> AABB<N>
[src]
pub fn loosen(&mut self, amount: N)
[src]
pub fn loosened(&self, amount: N) -> AABB<N>
[src]
pub fn tighten(&mut self, amount: N)
[src]
pub fn tightened(&self, amount: N) -> AABB<N>
[src]
impl<N> BoundingVolume<N> for BoundingSphere<N> where
N: RealField,
[src]
N: RealField,
pub fn center(&self) -> Point<N, U3>
[src]
pub fn intersects(&self, other: &BoundingSphere<N>) -> bool
[src]
pub fn contains(&self, other: &BoundingSphere<N>) -> bool
[src]
pub fn merge(&mut self, other: &BoundingSphere<N>)
[src]
pub fn merged(&self, other: &BoundingSphere<N>) -> BoundingSphere<N>
[src]
pub fn loosen(&mut self, amount: N)
[src]
pub fn loosened(&self, amount: N) -> BoundingSphere<N>
[src]
pub fn tighten(&mut self, amount: N)
[src]
pub fn tightened(&self, amount: N) -> BoundingSphere<N>
[src]
impl<N> BoundingVolume<N> for SpatializedNormalCone<N> where
N: RealField,
[src]
N: RealField,
pub fn center(&self) -> Point<N, U3>
[src]
pub fn intersects(&self, other: &SpatializedNormalCone<N>) -> bool
[src]
pub fn contains(&self, other: &SpatializedNormalCone<N>) -> bool
[src]
pub fn merge(&mut self, other: &SpatializedNormalCone<N>)
[src]
pub fn merged(
&self,
other: &SpatializedNormalCone<N>
) -> SpatializedNormalCone<N>
[src]
&self,
other: &SpatializedNormalCone<N>
) -> SpatializedNormalCone<N>