Public Member Functions | List of all members
Line2D Class Reference

A spatial distribution with a square step function. More...

#include <Line2D.hpp>

Inheritance diagram for Line2D:
Inheritance graph
[legend]
Collaboration diagram for Line2D:
Collaboration graph
[legend]

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...
 

Detailed Description

A spatial distribution with a square step function.

Definition at line 12 of file Line2D.hpp.

Constructor & Destructor Documentation

◆ Line2D()

Line2D::Line2D ( double  a,
double  b,
double  above,
double  under 
)

Class constructor.

Parameters
aSlope of the line a*x+b=y
bWhere the line intersects zero
aboveValue above the line
underValue under the line

Definition at line 3 of file Line2D.cpp.

Member Function Documentation

◆ operator()()

double Line2D::operator() ( const Vector2D point) const
virtual

Evaluates the function.

Parameters
pointPosition
Returns
The value of the function at the point

Implements SpatialDistribution.

Definition at line 10 of file Line2D.cpp.


The documentation for this class was generated from the following files: