Struct oxygengine_physics_2d::prelude::ncollide2d::bounding_volume::BoundingSphere [−][src]
pub struct BoundingSphere<N> where
N: RealField, { /* fields omitted */ }
A Bounding Sphere.
Implementations
impl<N> BoundingSphere<N> where
N: RealField,
[src]
impl<N> BoundingSphere<N> where
N: RealField,
[src]pub fn new(center: Point<N, U2>, radius: N) -> BoundingSphere<N>
[src]
Creates a new bounding sphere.
pub fn center(&self) -> &Point<N, U2>
[src]
The bounding sphere center.
pub fn radius(&self) -> N
[src]
The bounding sphere radius.
pub fn transform_by(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
Transforms this bounding sphere by m
.
Trait Implementations
impl<N> BoundingVolume<N> for BoundingSphere<N> where
N: RealField,
[src]
impl<N> BoundingVolume<N> for BoundingSphere<N> where
N: RealField,
[src]pub fn center(&self) -> Point<N, U2>
[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> Clone for BoundingSphere<N> where
N: Clone + RealField,
[src]
impl<N> Clone for BoundingSphere<N> where
N: Clone + RealField,
[src]pub fn clone(&self) -> BoundingSphere<N>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N> Copy for BoundingSphere<N> where
N: Copy + RealField,
[src]
impl<N> Copy for BoundingSphere<N> where
N: Copy + RealField,
[src]impl<N> Debug for BoundingSphere<N> where
N: Debug + RealField,
[src]
impl<N> Debug for BoundingSphere<N> where
N: Debug + RealField,
[src]impl<'de, N> Deserialize<'de> for BoundingSphere<N> where
N: RealField + Deserialize<'de>,
[src]
impl<'de, N> Deserialize<'de> for BoundingSphere<N> where
N: RealField + Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BoundingSphere<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<BoundingSphere<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Compound<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Compound<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Triangle<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Triangle<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Plane<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Plane<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for HeightField<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for HeightField<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Cuboid<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Cuboid<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Capsule<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Capsule<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Ball<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Ball<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Polyline<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Polyline<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for dyn Shape<N> + 'static where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for dyn Shape<N> + 'static where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for ConvexPolygon<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for ConvexPolygon<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Segment<N> where
N: RealField,
[src]
impl<N> HasBoundingVolume<N, BoundingSphere<N>> for Segment<N> where
N: RealField,
[src]pub fn bounding_volume(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>
) -> BoundingSphere<N>
pub fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N> PartialEq<BoundingSphere<N>> for BoundingSphere<N> where
N: PartialEq<N> + RealField,
[src]
impl<N> PartialEq<BoundingSphere<N>> for BoundingSphere<N> where
N: PartialEq<N> + RealField,
[src]pub fn eq(&self, other: &BoundingSphere<N>) -> bool
[src]
pub fn ne(&self, other: &BoundingSphere<N>) -> bool
[src]
impl<N> PointQuery<N> for BoundingSphere<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for BoundingSphere<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
impl<N> RayCast<N> for BoundingSphere<N> where
N: RealField,
[src]
impl<N> RayCast<N> for BoundingSphere<N> where
N: RealField,
[src]pub fn toi_with_ray(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
pub fn toi_and_normal_with_ray(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
pub fn intersects_ray(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
ray: &Ray<N>,
max_toi: N
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
ray: &Ray<N>,
max_toi: N
) -> bool
impl<N> Serialize for BoundingSphere<N> where
N: RealField + Serialize,
[src]
impl<N> Serialize for BoundingSphere<N> where
N: RealField + Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<N> StructuralPartialEq for BoundingSphere<N> where
N: RealField,
[src]
impl<N> StructuralPartialEq for BoundingSphere<N> where
N: RealField,
[src]Auto Trait Implementations
impl<N> RefUnwindSafe for BoundingSphere<N> where
N: RefUnwindSafe,
impl<N> RefUnwindSafe for BoundingSphere<N> where
N: RefUnwindSafe,
impl<N> Send for BoundingSphere<N>
impl<N> Send for BoundingSphere<N>
impl<N> Sync for BoundingSphere<N>
impl<N> Sync for BoundingSphere<N>
impl<N> Unpin for BoundingSphere<N> where
N: Unpin,
impl<N> Unpin for BoundingSphere<N> where
N: Unpin,
impl<N> UnwindSafe for BoundingSphere<N> where
N: UnwindSafe,
impl<N> UnwindSafe for BoundingSphere<N> where
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,