Struct implicit3d::Cone [−][src]
pub struct Cone<S: Real> { /* fields omitted */ }
A cone along the Z-Axis
Methods
impl<S: Real + Float + From<f32>> Cone<S>
[src]
impl<S: Real + Float + From<f32>> Cone<S>
ⓘImportant traits for Box<R>pub fn new(slope: S, offset: S) -> Box<Cone<S>>
[src]
pub fn new(slope: S, offset: S) -> Box<Cone<S>>
Create a new infinite Cone (along the Z-Axis) for a given slope and and offset from origin.
Trait Implementations
impl<S: Clone + Real> Clone for Cone<S>
[src]
impl<S: Clone + Real> Clone for Cone<S>
fn clone(&self) -> Cone<S>
[src]
fn clone(&self) -> Cone<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<S: Debug + Real> Debug for Cone<S>
[src]
impl<S: Debug + Real> Debug for Cone<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PartialEq + Real> PartialEq for Cone<S>
[src]
impl<S: PartialEq + Real> PartialEq for Cone<S>
fn eq(&self, other: &Cone<S>) -> bool
[src]
fn eq(&self, other: &Cone<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Cone<S>) -> bool
[src]
fn ne(&self, other: &Cone<S>) -> bool
This method tests for !=
.
impl<S: Debug + Real + From<f32> + Float> Object<S> for Cone<S>
[src]
impl<S: Debug + Real + From<f32> + Float> Object<S> for Cone<S>
fn bbox(&self) -> &BoundingBox<S>
[src]
fn bbox(&self) -> &BoundingBox<S>
Get the Bounding Box of this Object.
fn set_bbox(&mut self, bbox: &BoundingBox<S>)
[src]
fn set_bbox(&mut self, bbox: &BoundingBox<S>)
Explicitly set the Bounding Box.
fn approx_value(&self, p: &Point3<S>, _: S) -> S
[src]
fn approx_value(&self, p: &Point3<S>, _: S) -> S
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
fn normal(&self, p: &Point3<S>) -> Vector3<S>
[src]
fn normal(&self, p: &Point3<S>) -> Vector3<S>
Evaluate the normal of self
at the given point.
fn set_parameters(&mut self, _: &PrimitiveParameters<S>)
[src]
fn set_parameters(&mut self, _: &PrimitiveParameters<S>)
Allows to set parameters.
ⓘImportant traits for Box<R>fn translate(&self, v: &Vector3<S>) -> Box<Object<S>>
[src]
fn translate(&self, v: &Vector3<S>) -> Box<Object<S>>
Return a translated version of self
.
ⓘImportant traits for Box<R>fn rotate(&self, r: &Vector3<S>) -> Box<Object<S>>
[src]
fn rotate(&self, r: &Vector3<S>) -> Box<Object<S>>
Return a rotated version of self
.
ⓘImportant traits for Box<R>fn scale(&self, s: &Vector3<S>) -> Box<Object<S>>
[src]
fn scale(&self, s: &Vector3<S>) -> Box<Object<S>>
Return a scaled version of self
.