Struct ncollide3d::bounding_volume::BoundingSphere [−][src]
pub struct BoundingSphere<N: RealField> { /* fields omitted */ }
A Bounding Sphere.
Implementations
impl<N: RealField> BoundingSphere<N>
[src]
impl<N: RealField> BoundingSphere<N>
[src]pub fn new(center: Point<N>, radius: N) -> BoundingSphere<N>
[src]
Creates a new bounding sphere.
pub fn center(&self) -> &Point<N>
[src]
The bounding sphere center.
pub fn radius(&self) -> N
[src]
The bounding sphere radius.
pub fn transform_by(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
Transforms this bounding sphere by m
.
Trait Implementations
impl<N: RealField> BoundingVolume<N> for BoundingSphere<N>
[src]
impl<N: RealField> BoundingVolume<N> for BoundingSphere<N>
[src]fn center(&self) -> Point<N>
[src]
fn intersects(&self, other: &BoundingSphere<N>) -> bool
[src]
fn contains(&self, other: &BoundingSphere<N>) -> bool
[src]
fn merge(&mut self, other: &BoundingSphere<N>)
[src]
fn merged(&self, other: &BoundingSphere<N>) -> BoundingSphere<N>
[src]
fn loosen(&mut self, amount: N)
[src]
fn loosened(&self, amount: N) -> BoundingSphere<N>
[src]
fn tighten(&mut self, amount: N)
[src]
fn tightened(&self, amount: N) -> BoundingSphere<N>
[src]
impl<N: Clone + RealField> Clone for BoundingSphere<N>
[src]
impl<N: Clone + RealField> Clone for BoundingSphere<N>
[src]fn clone(&self) -> BoundingSphere<N>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Debug + RealField> Debug for BoundingSphere<N>
[src]
impl<N: Debug + RealField> Debug for BoundingSphere<N>
[src]impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Ball<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Ball<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Capsule<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Capsule<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Segment<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Segment<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for dyn Shape<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for dyn Shape<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Triangle<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Triangle<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for TriMesh<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for TriMesh<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Compound<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Compound<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cone<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cone<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for ConvexHull<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for ConvexHull<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cuboid<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cuboid<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cylinder<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cylinder<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for HeightField<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for HeightField<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Plane<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Plane<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Polyline<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Polyline<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: PartialEq + RealField> PartialEq<BoundingSphere<N>> for BoundingSphere<N>
[src]
impl<N: PartialEq + RealField> PartialEq<BoundingSphere<N>> for BoundingSphere<N>
[src]fn eq(&self, other: &BoundingSphere<N>) -> bool
[src]
fn ne(&self, other: &BoundingSphere<N>) -> bool
[src]
impl<N: RealField> PointQuery<N> for BoundingSphere<N>
[src]
impl<N: RealField> PointQuery<N> for BoundingSphere<N>
[src]fn project_point(
&self,
m: &Isometry<N>,
pt: &Point<N>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N>,
pt: &Point<N>,
solid: bool
) -> PointProjection<N>
fn project_point_with_feature(
&self,
m: &Isometry<N>,
pt: &Point<N>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N>,
pt: &Point<N>
) -> (PointProjection<N>, FeatureId)
fn distance_to_point(&self, m: &Isometry<N>, pt: &Point<N>, solid: bool) -> N
[src]
fn contains_point(&self, m: &Isometry<N>, pt: &Point<N>) -> bool
[src]
impl<N: RealField> RayCast<N> for BoundingSphere<N>
[src]
impl<N: RealField> RayCast<N> for BoundingSphere<N>
[src]fn toi_with_ray(
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
[src]
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
fn toi_and_normal_with_ray(
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
[src]
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
fn toi_and_normal_and_uv_with_ray(
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
[src]
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
fn intersects_ray(&self, m: &Isometry<N>, ray: &Ray<N>, max_toi: N) -> bool
[src]
impl<N: Copy + RealField> Copy for BoundingSphere<N>
[src]
impl<N: RealField> StructuralPartialEq for BoundingSphere<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for BoundingSphere<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for BoundingSphere<N>
impl<N> Sync for BoundingSphere<N>
impl<N> Unpin for BoundingSphere<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for BoundingSphere<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]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> Slottable for T where
T: Copy,
[src]
T: Copy,