Struct implicit3d::Sphere[][src]

pub struct Sphere<S: Real> { /* fields omitted */ }

A sphere. Simple.

Methods

impl<S: Real + Float> Sphere<S>
[src]

Important traits for Box<R>

Create a new sphere of radius r.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<S: PartialEq + Real> PartialEq for Sphere<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: Debug + Real + Float + From<f32>> Object<S> for Sphere<S>
[src]

Value is 0 on object surfaces, negative inside and positive outside of objects. If positive, value is guarateed to be the minimum distance to the object surface. return some approximation (which is always larger then the proper value). Only do a proper calculation, for values smaller then slack. Read more

Get the Bounding Box of this Object.

Evaluate the normal of self at the given point.

Explicitly set the Bounding Box.

Allows to set parameters.

Important traits for Box<R>

Return a translated version of self.

Important traits for Box<R>

Return a rotated version of self.

Important traits for Box<R>

Return a scaled version of self.

Auto Trait Implementations

impl<S> Send for Sphere<S>

impl<S> Sync for Sphere<S>