[][src]Trait hrbf::HRBFTrait

pub trait HRBFTrait<T: Real> {
    fn fit(&mut self, points: &[Point3<T>], normals: &[Vector3<T>]) -> bool;
fn fit_offset(
        &mut self,
        points: &[Point3<T>],
        offsets: &[T],
        normals: &[Vector3<T>]
    ) -> bool;
fn fit_system(
        &self,
        points: &[Point3<T>],
        potential: &[T],
        normals: &[Vector3<T>]
    ) -> (DMatrix<T>, DVector<T>);
fn eval(&self, p: Point3<T>) -> T;
fn grad(&self, p: Point3<T>) -> Vector3<T>;
fn hess(&self, p: Point3<T>) -> Matrix3<T>; }

HRBF public interface. It is not necessary to use this trait, but it allows using the HRBF as a trait object. For example this is used to pass HRBF objects between functions in the C API.

Required methods

fn fit(&mut self, points: &[Point3<T>], normals: &[Vector3<T>]) -> bool

fn fit_offset(
    &mut self,
    points: &[Point3<T>],
    offsets: &[T],
    normals: &[Vector3<T>]
) -> bool

fn fit_system(
    &self,
    points: &[Point3<T>],
    potential: &[T],
    normals: &[Vector3<T>]
) -> (DMatrix<T>, DVector<T>)

fn eval(&self, p: Point3<T>) -> T

fn grad(&self, p: Point3<T>) -> Vector3<T>

fn hess(&self, p: Point3<T>) -> Matrix3<T>

Loading content...

Implementors

impl<T, K> HRBFTrait<T> for HRBF<T, K> where
    T: Real,
    K: Kernel<T> + Default
[src]

Loading content...