12 theSectorGrid(sectorGrid)
28 double c =
cos(phiRot);
29 double s =
sin(phiRot);
30 double xrot = p.x() * c + p.y() *
s;
31 double yrot = -p.x() * s + p.y() *
c;
42 std::cout <<
"Throwing exception " << message << std::endl;
~CylinderFromSectorMFGrid() override
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
Dimensions dimensions() const override
Sin< T >::type sin(const T &t)
GloballyPositioned< float >::LocalPoint LocalPoint
void throwUp(const char *message) const
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
LocalVector valueInTesla(const LocalPoint &p) const override=0
Interpolated field value at given point.
LocalVector nodeValue(int i, int j, int k) const override
Field value at node.
CylinderFromSectorMFGrid(const GloballyPositioned< float > &vol, double phiMin, double phiMax, MFGrid *sectorGrid)
Cos< T >::type cos(const T &t)
GloballyPositioned< float >::LocalVector LocalVector
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
virtual Dimensions dimensions() const =0
LocalPoint nodePosition(int i, int j, int k) const override
Position of node in local frame.