pub trait Function2D {
    fn evaluate(&self, x: f64, y: f64) -> f64;
}
Expand description

General Information

Every struct defined to behave like a function must have a way to be evaluated. In two dimentions, all it takes is to obtain a value (x,y) and return another value (z,w).

Functions

  • evaluate(...) - Evaluation of a 2D function.

Required Methods§

Evaluation of a 2D function.

Implementors§