[][src]Trait salva3d::kernel::Kernel

pub trait Kernel: Send + Sync {
    fn scalar_apply(r: Real, h: Real) -> Real;
fn scalar_apply_diff(r: Real, h: Real) -> Real; fn apply(v: Vector<Real>, h: Real) -> Real { ... }
fn apply_diff(v: Vector<Real>, h: Real) -> Vector<Real> { ... }
fn points_apply(p1: &Point<Real>, p2: &Point<Real>, h: Real) -> Real { ... }
fn points_apply_diff1(
        p1: &Point<Real>,
        p2: &Point<Real>,
        h: Real
    ) -> Vector<Real> { ... }
fn points_apply_diff2(
        p1: &Point<Real>,
        p2: &Point<Real>,
        h: Real
    ) -> Vector<Real> { ... } }

Kernel functions for performing approximations within the PBF/SPH methods.

Required methods

fn scalar_apply(r: Real, h: Real) -> Real[src]

Evaluates the kernel for the given scalar r and the reference support length h.

fn scalar_apply_diff(r: Real, h: Real) -> Real[src]

Evaluates the kernel derivative for the given scalar r and the reference support length h.

Loading content...

Provided methods

fn apply(v: Vector<Real>, h: Real) -> Real[src]

Evaluate the kernel for the given vector.

fn apply_diff(v: Vector<Real>, h: Real) -> Vector<Real>[src]

Differential wrt. the coordinates of v.

fn points_apply(p1: &Point<Real>, p2: &Point<Real>, h: Real) -> Real[src]

Evaluate the kernel for the vector equal to p1 - p2.

fn points_apply_diff1(
    p1: &Point<Real>,
    p2: &Point<Real>,
    h: Real
) -> Vector<Real>
[src]

Differential wrt. the coordinates of p1.

fn points_apply_diff2(
    p1: &Point<Real>,
    p2: &Point<Real>,
    h: Real
) -> Vector<Real>
[src]

Differential wrt. the coordinates of p2.

Loading content...

Implementors

Loading content...