Line2D.hpp
Go to the documentation of this file.
1 
6 #ifndef LINE2D_HPP
7 #define LINE2D_HPP 1
8 
9 #include "../spatial_distribution2d.hpp"
10 
13 {
14 private:
15 
16  double _a,_b,_above,_under;
17 
18 public:
19 
26  Line2D(double a,double b,double above,double under);
27  ~Line2D();
28  double operator()(const Vector2D& r) const;
29 };
30 
31 #endif // LINE2D_HPP
double operator()(const Vector2D &r) const
Evaluates the function.
Definition: Line2D.cpp:10
Line2D(double a, double b, double above, double under)
Class constructor.
Definition: Line2D.cpp:3
Spatial distribution for initial conditions.
A spatial distribution with a square step function.
Definition: Line2D.hpp:12
2D Mathematical vector
Definition: geometry.hpp:15