Struct parry3d::bounding_volume::BoundingSphere[][src]

pub struct BoundingSphere {
    pub center: Point<Real>,
    pub radius: Real,
}

A Bounding Sphere.

Fields

center: Point<Real>radius: Real

Implementations

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 Clone for BoundingSphere[src]

impl Copy for BoundingSphere[src]

impl Debug for BoundingSphere[src]

impl PartialEq<BoundingSphere> for BoundingSphere[src]

impl PointQuery for BoundingSphere[src]

impl RayCast for BoundingSphere[src]

impl StructuralPartialEq for BoundingSphere[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.