parry3d/bounding_volume/
bounding_sphere_halfspace.rsuse crate::bounding_volume::BoundingSphere;
use crate::math::{Isometry, Point, Real};
use crate::shape::HalfSpace;
use num::Bounded;
impl HalfSpace {
#[inline]
pub fn bounding_sphere(&self, pos: &Isometry<Real>) -> BoundingSphere {
let bv: BoundingSphere = self.local_bounding_sphere();
bv.transform_by(pos)
}
#[inline]
pub fn local_bounding_sphere(&self) -> BoundingSphere {
let radius = Real::max_value();
BoundingSphere::new(Point::origin(), radius)
}
}