A spatial distribution with a square step function. More...
#include <Line2D.hpp>
Public Member Functions | |
Line2D (double a, double b, double above, double under) | |
Class constructor. More... | |
double | operator() (const Vector2D &r) const |
Evaluates the function. More... | |
A spatial distribution with a square step function.
Definition at line 12 of file Line2D.hpp.
Line2D::Line2D | ( | double | a, |
double | b, | ||
double | above, | ||
double | under | ||
) |
Class constructor.
a | Slope of the line a*x+b=y |
b | Where the line intersects zero |
above | Value above the line |
under | Value under the line |
Definition at line 3 of file Line2D.cpp.
|
virtual |
Evaluates the function.
point | Position |
Implements SpatialDistribution.
Definition at line 10 of file Line2D.cpp.