Trait heron::rapier_plugin::rapier3d::parry::bounding_volume::BoundingVolume [−][src]
pub trait BoundingVolume {
fn center(&self) -> OPoint<f32, Const<3_usize>>;
fn intersects(&self, &Self) -> bool;
fn contains(&self, &Self) -> bool;
fn merge(&mut self, &Self);
fn merged(&self, &Self) -> Self;
fn loosen(&mut self, f32);
fn loosened(&self, f32) -> Self;
fn tighten(&mut self, f32);
fn tightened(&self, f32) -> Self;
}
Expand description
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
Returns a point inside of this bounding volume. This is ideally its center.
fn intersects(&self, &Self) -> bool
fn intersects(&self, &Self) -> bool
Checks if this bounding volume intersect with another one.
Merges this bounding volume with another one. The merge is done in-place.