[−][src]Struct sdfu::primitives::Sphere
A shere centered at origin with a radius.
Fields
radius: T
Implementations
impl<T> Sphere<T>
[src]
Trait Implementations
impl<T: Clone> Clone for Sphere<T>
[src]
impl<T: Copy> Copy for Sphere<T>
[src]
impl<T: Debug> Debug for Sphere<T>
[src]
impl<T, V> SDF<T, V> for Sphere<T> where
T: Sub<T, Output = T> + Copy,
V: Vec3<T>,
[src]
T: Sub<T, Output = T> + Copy,
V: Vec3<T>,
fn dist(&self, p: V) -> T
[src]
fn normals(self, eps: T) -> EstimateNormalDefault<T, V, Self> where
CentralDifferenceEstimator<T, V, <V as Vec<T>>::Dimension>: NormalEstimator<T, V>,
[src]
CentralDifferenceEstimator<T, V, <V as Vec<T>>::Dimension>: NormalEstimator<T, V>,
fn normals_fast(self, eps: T) -> EstimateNormalFast<T, V, Self> where
TetrahedralEstimator<T, V>: NormalEstimator<T, V>,
[src]
TetrahedralEstimator<T, V>: NormalEstimator<T, V>,
fn normals_with<E: NormalEstimator<T, V>>(
self,
estimator: E
) -> EstimateNormal<T, V, Self, E>
[src]
self,
estimator: E
) -> EstimateNormal<T, V, Self, E>
fn union<O: SDF<T, V>>(self, other: O) -> Union<T, Self, O, HardMin<T>>
[src]
fn union_smooth<O: SDF<T, V>>(
self,
other: O,
softness: T
) -> Union<T, Self, O, PolySmoothMin<T>>
[src]
self,
other: O,
softness: T
) -> Union<T, Self, O, PolySmoothMin<T>>
fn union_with<O: SDF<T, V>, M: MinFunction<T>>(
self,
other: O,
min_function: M
) -> Union<T, Self, O, M>
[src]
self,
other: O,
min_function: M
) -> Union<T, Self, O, M>
fn subtract<O: SDF<T, V>>(self, other: O) -> Subtraction<O, Self>
[src]
fn intersection<O: SDF<T, V>>(self, other: O) -> Intersection<Self, O>
[src]
fn round(self, radius: T) -> Round<T, Self>
[src]
fn elongate(
self,
axis: Axis,
elongation: T
) -> Elongate<T, Self, <V as Vec<T>>::Dimension> where
Elongate<T, Self, <V as Vec<T>>::Dimension>: SDF<T, V>,
[src]
self,
axis: Axis,
elongation: T
) -> Elongate<T, Self, <V as Vec<T>>::Dimension> where
Elongate<T, Self, <V as Vec<T>>::Dimension>: SDF<T, V>,
fn elongate_multi_axis(
self,
elongation: V
) -> ElongateMulti<V, Self, <V as Vec<T>>::Dimension> where
ElongateMulti<V, Self, <V as Vec<T>>::Dimension>: SDF<T, V>,
[src]
self,
elongation: V
) -> ElongateMulti<V, Self, <V as Vec<T>>::Dimension> where
ElongateMulti<V, Self, <V as Vec<T>>::Dimension>: SDF<T, V>,
fn translate(self, translation: V) -> Translate<V, Self>
[src]
fn rotate<R: Rotation<V>>(self, rotation: R) -> Rotate<R, Self>
[src]
fn scale(self, scaling: T) -> Scale<T, Self>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Sphere<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Sphere<T> where
T: Send,
T: Send,
impl<T> Sync for Sphere<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Sphere<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Sphere<T> where
T: UnwindSafe,
T: UnwindSafe,
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<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>,