[−][src]Struct sdfu::util::EstimateNormal
Estimates the normal of an sdf
using an estimator
.
It is reasonable by default to choose a CentralDifferenceEstimator
,
which provides an estimator that works for both 2D and 3D SDFs. See the documentation
of NormalEstimator
for more information.
Fields
sdf: S
estimator: E
Implementations
impl<T, V, S, E> EstimateNormal<T, V, S, E> where
E: NormalEstimator<T, V>,
S: SDF<T, V>,
V: Vec<T>,
[src]
E: NormalEstimator<T, V>,
S: SDF<T, V>,
V: Vec<T>,
pub fn new(sdf: S, estimator: E) -> Self
[src]
Creates a new EstimateNormal
with an SDF and a provided estimator.
pub fn normal_at(&self, p: V) -> V
[src]
Estimates the normal of the owned SDF at point p.
Auto Trait Implementations
impl<T, V, S, E> RefUnwindSafe for EstimateNormal<T, V, S, E> where
E: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
E: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V, S, E> Send for EstimateNormal<T, V, S, E> where
E: Send,
S: Send,
T: Send,
V: Send,
E: Send,
S: Send,
T: Send,
V: Send,
impl<T, V, S, E> Sync for EstimateNormal<T, V, S, E> where
E: Sync,
S: Sync,
T: Sync,
V: Sync,
E: Sync,
S: Sync,
T: Sync,
V: Sync,
impl<T, V, S, E> Unpin for EstimateNormal<T, V, S, E> where
E: Unpin,
S: Unpin,
T: Unpin,
V: Unpin,
E: Unpin,
S: Unpin,
T: Unpin,
V: Unpin,
impl<T, V, S, E> UnwindSafe for EstimateNormal<T, V, S, E> where
E: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
E: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
V: 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, 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>,