Struct parry2d_f64::bounding_volume::BoundingSphere [−][src]
A Bounding Sphere.
Fields
center: Point<Real>
radius: Real
Implementations
impl BoundingSphere
[src]
impl BoundingSphere
[src]pub fn new(center: Point<Real>, radius: Real) -> BoundingSphere
[src]
Creates a new bounding sphere.
pub fn center(&self) -> &Point<Real>
[src]
The bounding sphere center.
pub fn radius(&self) -> Real
[src]
The bounding sphere radius.
pub fn transform_by(&self, m: &Isometry<Real>) -> BoundingSphere
[src]
Transforms this bounding sphere by m
.
Trait Implementations
impl BoundingVolume for BoundingSphere
[src]
impl BoundingVolume for BoundingSphere
[src]fn center(&self) -> Point<Real>
[src]
fn intersects(&self, other: &BoundingSphere) -> bool
[src]
fn contains(&self, other: &BoundingSphere) -> bool
[src]
fn merge(&mut self, other: &BoundingSphere)
[src]
fn merged(&self, other: &BoundingSphere) -> BoundingSphere
[src]
fn loosen(&mut self, amount: Real)
[src]
fn loosened(&self, amount: Real) -> BoundingSphere
[src]
fn tighten(&mut self, amount: Real)
[src]
fn tightened(&self, amount: Real) -> BoundingSphere
[src]
impl Clone for BoundingSphere
[src]
impl Clone for BoundingSphere
[src]fn clone(&self) -> BoundingSphere
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BoundingSphere
[src]
impl Copy for BoundingSphere
[src]impl PartialEq<BoundingSphere> for BoundingSphere
[src]
impl PartialEq<BoundingSphere> for BoundingSphere
[src]fn eq(&self, other: &BoundingSphere) -> bool
[src]
fn ne(&self, other: &BoundingSphere) -> bool
[src]
impl PointQuery for BoundingSphere
[src]
impl PointQuery for BoundingSphere
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real
[src]
fn contains_local_point(&self, pt: &Point<Real>) -> bool
[src]
fn project_point(
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> PointProjection
[src]
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> PointProjection
fn distance_to_point(
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> Real
[src]
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> Real
fn project_point_and_get_feature(
&self,
m: &Isometry<Real>,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
m: &Isometry<Real>,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
fn contains_point(&self, m: &Isometry<Real>, pt: &Point<Real>) -> bool
[src]
impl RayCast for BoundingSphere
[src]
impl RayCast for BoundingSphere
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
fn intersects_local_ray(&self, ray: &Ray, max_toi: Real) -> bool
[src]
fn cast_ray(
&self,
m: &Isometry<Real>,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<Real>
[src]
&self,
m: &Isometry<Real>,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<Real>
fn cast_ray_and_get_normal(
&self,
m: &Isometry<Real>,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
m: &Isometry<Real>,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
fn intersects_ray(&self, m: &Isometry<Real>, ray: &Ray, max_toi: Real) -> bool
[src]
impl StructuralPartialEq for BoundingSphere
[src]
impl StructuralPartialEq for BoundingSphere
[src]Auto Trait Implementations
impl RefUnwindSafe for BoundingSphere
impl RefUnwindSafe for BoundingSphere
impl Send for BoundingSphere
impl Send for BoundingSphere
impl Sync for BoundingSphere
impl Sync for BoundingSphere
impl Unpin for BoundingSphere
impl Unpin for BoundingSphere
impl UnwindSafe for BoundingSphere
impl UnwindSafe for BoundingSphere
Blanket Implementations
impl<T> CheckedAs for T
[src]
impl<T> CheckedAs for T
[src]pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]pub fn lossy_into(self) -> Dst
[src]
impl<T> OverflowingAs for T
[src]
impl<T> OverflowingAs for T
[src]pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatingAs for T
[src]
impl<T> SaturatingAs for T
[src]pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> UnwrappedAs for T
[src]
impl<T> UnwrappedAs for T
[src]pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
impl<T> WrappingAs for T
[src]pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,