Trait implicit3d::Object
[−]
[src]
pub trait Object<S: Real + Float + From<f32>>: ObjectClone<S> + Debug + Sync + Send { fn bbox(&self) -> &BoundingBox<S>; fn set_bbox(&mut self, _: BoundingBox<S>) { ... } fn set_parameters(&mut self, _: &PrimitiveParameters<S>) { ... } fn approx_value(&self, _: Point3<S>, _: S) -> S { ... } fn normal(&self, _: Point3<S>) -> Vector3<S> { ... } fn translate(&self, v: Vector3<S>) -> Box<Object<S>> { ... } fn rotate(&self, r: Vector3<S>) -> Box<Object<S>> { ... } fn scale(&self, s: Vector3<S>) -> Box<Object<S>> { ... } }
Required Methods
fn bbox(&self) -> &BoundingBox<S>
Provided Methods
fn set_bbox(&mut self, _: BoundingBox<S>)
fn set_parameters(&mut self, _: &PrimitiveParameters<S>)
fn approx_value(&self, _: Point3<S>, _: S) -> S
fn normal(&self, _: Point3<S>) -> Vector3<S>
fn translate(&self, v: Vector3<S>) -> Box<Object<S>>
fn rotate(&self, r: Vector3<S>) -> Box<Object<S>>
fn scale(&self, s: Vector3<S>) -> Box<Object<S>>
Implementors
impl<S: Real + Float + From<f32>> Object<S> for AffineTransformer<S>
impl<S: Real + From<f32> + Float + FloatConst> Object<S> for Twister<S>
impl<S: Real + From<f32> + Float + FloatConst> Object<S> for Bender<S>
impl<S: Real + From<f32> + Float> Object<S> for Union<S>
impl<S: Real + From<f32> + Float> Object<S> for Intersection<S>
impl<S: Debug + Real + Float + From<f32>> Object<S> for Sphere<S>
impl<S: Debug + Real + From<f32> + Float> Object<S> for Cylinder<S>
impl<S: Debug + Real + From<f32> + Float> Object<S> for Cone<S>
impl<S: Real + Float + From<f64> + From<f32>> Object<S> for Mesh<S>