[][src]Struct ncollide_geometry::shape::Ball

pub struct Ball<N> { /* fields omitted */ }

A Ball shape.

Methods

impl<N: Real> Ball<N>[src]

pub fn new(radius: N) -> Ball<N>[src]

Creates a new ball from its radius and center.

pub fn radius(&self) -> N[src]

The ball radius.

Trait Implementations

impl<P: Point, M: Isometry<P>> SupportMap<P, M> for Ball<P::Real>[src]

fn support_area_toward(
    &self,
    transform: &M,
    dir: &Unit<P::Vector>,
    _angle: P::Real,
    out: &mut Vec<P>
)
[src]

impl<P: Point, M: Isometry<P>> Shape<P, M> for Ball<P::Real>[src]

fn as_composite_shape(&self) -> Option<&dyn CompositeShape<P, M>>[src]

The composite shape representation of self if applicable.

fn is_composite_shape(&self) -> bool[src]

Whether self uses a composite shape-based representation.

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, AABB<P>> for Ball<P::Real>[src]

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, BoundingSphere<P>> for Ball<P::Real>[src]

impl<P: Point, M: Isometry<P>> RayCast<P, M> for Ball<P::Real>[src]

fn intersects_ray(&self, m: &M, ray: &Ray<P>) -> bool[src]

Tests whether a ray intersects this transformed shape.

impl<P: Point, M: Isometry<P>> PointQuery<P, M> for Ball<P::Real>[src]

impl<N: PartialEq> PartialEq<Ball<N>> for Ball<N>[src]

impl<N: Clone> Clone for Ball<N>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<N: Debug> Debug for Ball<N>[src]

Auto Trait Implementations

impl<N> Send for Ball<N> where
    N: Send

impl<N> Sync for Ball<N> where
    N: Sync

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Same for T

type Output = T

Should always be Self