Struct implicit3d::AffineTransformer [−][src]
pub struct AffineTransformer<S: Real> { /* fields omitted */ }
AffineTransformer is a primitive that takes an object as input and allows to modify it using
affine transforms.
Usually it is used indirectly through Object::scale()
, Object::translate()
or Object::rotate()
.
Methods
impl<S: Real + Float + From<f32>> AffineTransformer<S>
[src]
impl<S: Real + Float + From<f32>> AffineTransformer<S>
ⓘImportant traits for Box<R>pub fn new_translate(o: Box<Object<S>>, v: &Vector3<S>) -> Box<Object<S>>
[src]
pub fn new_translate(o: Box<Object<S>>, v: &Vector3<S>) -> Box<Object<S>>
Create a new translated version of the input.
ⓘImportant traits for Box<R>pub fn new_rotate(o: Box<Object<S>>, r: &Vector3<S>) -> Box<Object<S>>
[src]
pub fn new_rotate(o: Box<Object<S>>, r: &Vector3<S>) -> Box<Object<S>>
Create a new rotated version of the input.
ⓘImportant traits for Box<R>pub fn new_scale(o: Box<Object<S>>, s: &Vector3<S>) -> Box<Object<S>>
[src]
pub fn new_scale(o: Box<Object<S>>, s: &Vector3<S>) -> Box<Object<S>>
Create a new scaled version of the input.
Trait Implementations
impl<S: Clone + Real> Clone for AffineTransformer<S>
[src]
impl<S: Clone + Real> Clone for AffineTransformer<S>
fn clone(&self) -> AffineTransformer<S>
[src]
fn clone(&self) -> AffineTransformer<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 AffineTransformer<S>
[src]
impl<S: Debug + Real> Debug for AffineTransformer<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: Real + Float + From<f32>> Object<S> for AffineTransformer<S>
[src]
impl<S: Real + Float + From<f32>> Object<S> for AffineTransformer<S>
fn approx_value(&self, p: &Point3<S>, slack: S) -> S
[src]
fn approx_value(&self, p: &Point3<S>, slack: 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 bbox(&self) -> &BoundingBox<S>
[src]
fn bbox(&self) -> &BoundingBox<S>
Get the Bounding Box of this Object.
fn set_parameters(&mut self, p: &PrimitiveParameters<S>)
[src]
fn set_parameters(&mut self, p: &PrimitiveParameters<S>)
Allows to set parameters.
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.
ⓘ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
.
fn set_bbox(&mut self, _: &BoundingBox<S>)
[src]
fn set_bbox(&mut self, _: &BoundingBox<S>)
Explicitly set the Bounding Box.
Auto Trait Implementations
impl<S> Send for AffineTransformer<S>
impl<S> Send for AffineTransformer<S>
impl<S> Sync for AffineTransformer<S>
impl<S> Sync for AffineTransformer<S>