27 #ifndef RECTANGULAR_DOMAIN_H
28 #define RECTANGULAR_DOMAIN_H
48 inline bool isInside(
int x,
int y,
int )
const {
49 double xx = (x - (
nr_m[0] - 1) / 2.0) *
hr_m[0];
50 double yy = (y - (
nr_m[1] - 1) / 2.0) *
hr_m[1];
IntVector_t nr_m
number of mesh points in each direction
double getXRangeMax() const
double getYRangeMax() const
Vector_t hr_m
mesh-spacings in each direction
RectangularDomain(double a, double b, IntVector_t nr, Vector_t hr)
bool isInside(int x, int y, int) const
queries if a given (x,y,z) coordinate lies inside the domain
int coordAccess(int idx) const
int indexAccess(int x, int y, int z) const
conversion from (x,y,z) to index on the 3D grid
void compute(Vector_t hr, NDIndex< 3 >)
calculates intersection with the beam pipe
int getNumXY() const override