Struct collision::primitive::Sphere [] [src]

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

Sphere primitive

Fields

Radius of the sphere

Methods

impl<S> Sphere<S>
[src]

[src]

Create a new sphere primitive

Trait Implementations

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

[src]

Performs the conversion.

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

[src]

This method tests for !=.

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

Point type

[src]

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

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

[src]

Intersection test

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

Result returned by the intersection test

[src]

Intersection test

Auto Trait Implementations

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

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