Struct collision::Sphere [] [src]

pub struct Sphere<S: BaseFloat> {
    pub center: Point3<S>,
    pub radius: S,
}

Fields

center: Point3<S> radius: S

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn eq(&self, __arg_0: &Sphere<S>) -> bool

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

fn ne(&self, __arg_0: &Sphere<S>) -> bool

This method tests for !=.

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

fn clone(&self) -> Sphere<S>

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<S: Copy + BaseFloat> Copy for Sphere<S>
[src]

impl<S: BaseFloat + 'static> Bound<S> for Sphere<S>
[src]

fn relate_plane(self, plane: Plane<S>) -> Relation

Classify the spatial relation with a plane.

fn relate_clip_space(self, projection: Matrix4<S>) -> Relation

Classify the relation with a projection matrix.