Struct implicit3d::Twister
[−]
[src]
pub struct Twister<S: Real> { /* fields omitted */ }
Twister will twist an object by rotating it along the Z-Axis.
Methods
impl<S: Real + Float + FloatConst + From<f32>> Twister<S>
[src]
ⓘImportant traits for Box<W>pub fn new(o: Box<Object<S>>, h: S) -> Box<Twister<S>>
[src]
Create a twisted version ob o. o: Object to be twisted, h: height for one full rotation
Trait Implementations
impl<S: Clone + Real> Clone for Twister<S>
[src]
fn clone(&self) -> Twister<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug + Real> Debug for Twister<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: Real + From<f32> + Float + FloatConst> Object<S> for Twister<S>
[src]
fn approx_value(&self, p: Point3<S>, slack: S) -> 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
fn bbox(&self) -> &BoundingBox<S>
[src]
Get the Bounding Box of this Object.
fn set_parameters(&mut self, p: &PrimitiveParameters<S>)
[src]
Allows to set parameters.
fn normal(&self, p: Point3<S>) -> Vector3<S>
[src]
Evaluate the normal of self
at the given point.
fn set_bbox(&mut self, _: BoundingBox<S>)
[src]
Explicitly set the Bounding Box.
ⓘImportant traits for Box<W>fn translate(&self, v: Vector3<S>) -> Box<Object<S>>
[src]
Return a translated version of self
.
ⓘImportant traits for Box<W>fn rotate(&self, r: Vector3<S>) -> Box<Object<S>>
[src]
Return a rotated version of self
.
ⓘImportant traits for Box<W>fn scale(&self, s: Vector3<S>) -> Box<Object<S>>
[src]
Return a scaled version of self
.