4 #include <utl/TabulatedFunction.h>
6 namespace FdEnergyDepositFinderKG {
20 const double xPos,
const double yPos,
21 const double sideLength,
22 const double tiltAngle=0.);
25 bool IsInside(
const double x,
double y)
const;
30 const double circleRadius)
const;
35 const double circleRadius)
const;
Class to hold collection (x,y) points and provide interpolation between them.
const std::vector< double > & GetXCoordinates() const
get x coordinates of corner points (0-6, see sketch below)
bool IsInside(const double x, double y) const
check if point (x,y) is inside the hexagon
const utl::TabulatedFunction & GetArcLengthFunction() const
double GetCenterY() const
void CalculateCoordinates()
double GetCenterX() const
std::vector< double > CircleIntersections(const double circleX, const double circleY, const double circleRadius) const
get vector of intersections (phi angle) with a circle with
double CalculateInsideArcLength(const double circleX, const double circleY, const double circleRadius) const
calculate arc length of a circle inside hexagon in units of r*2*pi
utl::TabulatedFunction fArcLengthFunction
std::vector< double > fXCoordinates
std::vector< double > fYCoordinates
const std::vector< double > & GetYCoordinates() const
get y coordinates of corner points (0-6, see sketch below)