[−][src]Struct implicit3d::Bender
Bender create an implicit function that represents a bended version of it's input. The object will be bend around the Z-Axis. E.g. bending a cylinder along the X-Axis (and translated away from the Z-Axis) will result in a Torus.
Implementations
impl<S: RealField + Float + FloatConst + From<f32>> Bender<S>
[src]
pub fn new(o: Box<dyn Object<S>>, w: S) -> Self
[src]
Create a new bent object. o: Object to be bent, w: width (x) for one full rotation
Trait Implementations
impl<S: Clone + RealField> Clone for Bender<S>
[src]
impl<S: Debug + RealField> Debug for Bender<S>
[src]
impl<S: RealField + From<f32> + Float + FloatConst> Object<S> for Bender<S>
[src]
fn approx_value(&self, p: &Point3<S>, slack: S) -> S
[src]
fn bbox(&self) -> &BoundingBox<S>
[src]
fn set_parameters(&mut self, p: &PrimitiveParameters<S>)
[src]
fn normal(&self, p: &Point3<S>) -> Vector3<S>
[src]
fn set_bbox(&mut self, _: &BoundingBox<S>)
[src]
fn translate(&self, v: &Vector3<S>) -> Box<dyn Object<S>>
[src]
fn rotate(&self, r: &Vector3<S>) -> Box<dyn Object<S>>
[src]
fn scale(&self, s: &Vector3<S>) -> Box<dyn Object<S>>
[src]
Auto Trait Implementations
impl<S> !RefUnwindSafe for Bender<S>
impl<S> Send for Bender<S> where
S: Scalar,
S: Scalar,
impl<S> Sync for Bender<S> where
S: Scalar,
S: Scalar,
impl<S> Unpin for Bender<S> where
S: Scalar + Unpin,
S: Scalar + Unpin,
impl<S> !UnwindSafe for Bender<S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, T> ObjectClone<S> for T where
S: RealField + From<f32> + Float,
T: 'static + Object<S> + Clone,
[src]
S: RealField + From<f32> + Float,
T: 'static + Object<S> + Clone,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,