Struct parry3d::shape::Ball[][src]

pub struct Ball {
    pub radius: Real,
}

A Ball shape.

Fields

radius: Real

The radius of the ball.

Implementations

impl Ball[src]

pub fn aabb(&self, pos: &Isometry<Real>) -> AABB[src]

Computes the world-space AABB of this ball transformed by pos.

pub fn local_aabb(&self) -> AABB[src]

Computes the local-space AABB of this ball.

impl Ball[src]

pub fn bounding_sphere(&self, pos: &Isometry<Real>) -> BoundingSphere[src]

Computes the world-space bounding sphere of this ball, transformed by pos.

pub fn local_bounding_sphere(&self) -> BoundingSphere[src]

Computes the local-space AABB of this ball.

impl Ball[src]

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

Creates a new ball from its radius and center.

impl Ball[src]

pub fn to_trimesh(
    &self,
    ntheta_subdiv: u32,
    nphi_subdiv: u32
) -> (Vec<Point3<Real>>, Vec<[u32; 3]>)
[src]

Discretize the boundary of this ball as a triangle-mesh.

Trait Implementations

impl Clone for Ball[src]

impl Copy for Ball[src]

impl Debug for Ball[src]

impl PartialEq<Ball> for Ball[src]

impl PointQuery for Ball[src]

impl RayCast for Ball[src]

impl Shape for Ball[src]

impl StructuralPartialEq for Ball[src]

impl SupportMap for Ball[src]

Auto Trait Implementations

impl RefUnwindSafe for Ball

impl Send for Ball

impl Sync for Ball

impl Unpin for Ball

impl UnwindSafe for Ball

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.