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: Debug> Debug for Sphere<S>
[src]

[src]

Formats the value using the given formatter.

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> SupportFunction 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> HasAabb for Sphere<S> where
    S: BaseFloat
[src]

Bounding box type

[src]

Get the bounding box of the primitive in local space coordinates.

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