Struct rhusics_core::collide3d::Sphere[][src]

pub struct Sphere<S> {
    pub radius: S,
}

Sphere primitive

Fields

Radius of the sphere

Methods

impl<S> Sphere<S>
[src]

Create a new sphere primitive

Trait Implementations

impl<S> ComputeBound<Sphere<S>> for Sphere<S> where
    S: BaseFloat
[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for Sphere<S> where
    S: BaseFloat
[src]

Compute the bounding volume

impl<S> Clone for Sphere<S> where
    S: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S> Debug for Sphere<S> where
    S: Debug
[src]

Formats the value using the given formatter. Read more

impl<S> Primitive for Sphere<S> where
    S: BaseFloat
[src]

Point type

Get the support point on the shape in a given direction. Read more

impl<S> From<Sphere<S>> for Primitive3<S> where
    S: BaseFloat
[src]

Performs the conversion.

impl<S> Serialize for Sphere<S> where
    S: Serialize
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de, S> Deserialize<'de> for Sphere<S> where
    S: Deserialize<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
    S: BaseFloat
[src]

Intersection test

impl<S> Continuous<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
    S: BaseFloat
[src]

Result returned by the intersection test

Intersection test

impl<S> PartialEq<Sphere<S>> for Sphere<S> where
    S: PartialEq<S>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S> Volume<S, Matrix3<S>> for Sphere<S> where
    S: BaseFloat
[src]

Compute the mass of the shape based on its material

Auto Trait Implementations

impl<S> Send for Sphere<S> where
    S: Send

impl<S> Sync for Sphere<S> where
    S: Sync