Struct salva2d::kernel::SpikyKernel
source · pub struct SpikyKernel;
Expand description
The Spiky smoothing kernel.
Refer to “Particle-Based Fluid Simulation for Interactive Applications”, Müller et al.pub struct SpikyKernel;
Trait Implementations§
source§impl Clone for SpikyKernel
impl Clone for SpikyKernel
source§fn clone(&self) -> SpikyKernel
fn clone(&self) -> SpikyKernel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpikyKernel
impl Debug for SpikyKernel
source§impl Kernel for SpikyKernel
impl Kernel for SpikyKernel
source§fn scalar_apply(r: Real, h: Real) -> Real
fn scalar_apply(r: Real, h: Real) -> Real
Evaluates the kernel for the given scalar
r
and the reference support length h
.source§fn scalar_apply_diff(r: Real, h: Real) -> Real
fn scalar_apply_diff(r: Real, h: Real) -> Real
Evaluates the kernel derivative for the given scalar
r
and the reference support length h
.source§fn apply_diff(v: Vector<Real>, h: Real) -> Vector<Real>
fn apply_diff(v: Vector<Real>, h: Real) -> Vector<Real>
Differential wrt. the coordinates of
v
.source§fn points_apply(p1: &Point<Real>, p2: &Point<Real>, h: Real) -> Real
fn points_apply(p1: &Point<Real>, p2: &Point<Real>, h: Real) -> Real
Evaluate the kernel for the vector equal to
p1 - p2
.impl Copy for SpikyKernel
Auto Trait Implementations§
impl RefUnwindSafe for SpikyKernel
impl Send for SpikyKernel
impl Sync for SpikyKernel
impl Unpin for SpikyKernel
impl UnwindSafe for SpikyKernel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.