[][src]Struct sdfu::mods::Elongate

pub struct Elongate<T, S, D> {
    pub sdf: S,
    pub axis: Axis,
    pub elongation: T,
    // some fields omitted
}

Elongate an SDF along a single axis. The elongation is symmetrical around the origin.

Fields

sdf: Saxis: Axiselongation: T

Implementations

impl<T, S, D> Elongate<T, S, D>[src]

pub fn new(sdf: S, axis: Axis, elongation: T) -> Self[src]

Elongate an SDF along a single axis by elongation.

Trait Implementations

impl<T: Clone, S: Clone, D: Clone> Clone for Elongate<T, S, D>[src]

impl<T: Copy, S: Copy, D: Copy> Copy for Elongate<T, S, D>[src]

impl<T: Debug, S: Debug, D: Debug> Debug for Elongate<T, S, D>[src]

impl<T, V, S> SDF<T, V> for Elongate<T, S, Dim3D> where
    T: Copy + Add<T, Output = T> + Sub<T, Output = T> + Zero,
    V: Vec3<T>,
    S: SDF<T, V>, 
[src]

impl<T, V, S> SDF<T, V> for Elongate<T, S, Dim2D> where
    T: Copy + Add<T, Output = T> + Sub<T, Output = T> + Zero,
    V: Vec2<T>,
    S: SDF<T, V>, 
[src]

Auto Trait Implementations

impl<T, S, D> RefUnwindSafe for Elongate<T, S, D> where
    D: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, S, D> Send for Elongate<T, S, D> where
    D: Send,
    S: Send,
    T: Send

impl<T, S, D> Sync for Elongate<T, S, D> where
    D: Sync,
    S: Sync,
    T: Sync

impl<T, S, D> Unpin for Elongate<T, S, D> where
    D: Unpin,
    S: Unpin,
    T: Unpin

impl<T, S, D> UnwindSafe for Elongate<T, S, D> where
    D: UnwindSafe,
    S: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.