#include <Trapezoid2RectangleMappingX.h>
Public Member Functions | |
void | rectangle (double xtrap, double ytrap, double &xrec, double &yrec) const |
void | trapezoid (double xrec, double yrec, double &xtrap, double &ytrap) const |
Trapezoid2RectangleMappingX (double x0, double y0, double bovera, double h) | |
normal trapezoid case, a != b | |
Trapezoid2RectangleMappingX (double x0, double y0, double k) | |
special parallelogram case, a == b. The meaning of k changes. | |
Trapezoid2RectangleMappingX () | |
Private Attributes | |
double | k_ |
bool | parallel_ |
double | x0_ |
double | y0_ |
Maps a trapezoidal coordinate system into a cartesian one. It is assumed that x is the coordinate along the trapezoid bases while y is along the trapezoid height.
Definition at line 22 of file Trapezoid2RectangleMappingX.h.
Trapezoid2RectangleMappingX::Trapezoid2RectangleMappingX | ( | ) | [inline] |
Definition at line 25 of file Trapezoid2RectangleMappingX.h.
{}
Trapezoid2RectangleMappingX::Trapezoid2RectangleMappingX | ( | double | x0, |
double | y0, | ||
double | bovera, | ||
double | h | ||
) | [inline] |
normal trapezoid case, a != b
Definition at line 28 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout, and k_.
Trapezoid2RectangleMappingX::Trapezoid2RectangleMappingX | ( | double | x0, |
double | y0, | ||
double | k | ||
) | [inline] |
special parallelogram case, a == b. The meaning of k changes.
Definition at line 40 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout.
void Trapezoid2RectangleMappingX::rectangle | ( | double | xtrap, |
double | ytrap, | ||
double & | xrec, | ||
double & | yrec | ||
) | const [inline] |
Definition at line 49 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout, k_, parallel_, x0_, and y0_.
Referenced by TrapezoidalCartesianMFGrid::toGridFrame(), TrapezoidalCylindricalMFGrid::toGridFrame(), TrapezoidalCartesianMFGrid::TrapezoidalCartesianMFGrid(), TrapezoidalCylindricalMFGrid::TrapezoidalCylindricalMFGrid(), and TrapezoidalCartesianMFGrid::uncheckedValueInTesla().
void Trapezoid2RectangleMappingX::trapezoid | ( | double | xrec, |
double | yrec, | ||
double & | xtrap, | ||
double & | ytrap | ||
) | const [inline] |
Definition at line 61 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout, k_, parallel_, x0_, and y0_.
Referenced by TrapezoidalCartesianMFGrid::fromGridFrame(), and TrapezoidalCylindricalMFGrid::fromGridFrame().
double Trapezoid2RectangleMappingX::k_ [private] |
Definition at line 75 of file Trapezoid2RectangleMappingX.h.
Referenced by rectangle(), trapezoid(), and Trapezoid2RectangleMappingX().
bool Trapezoid2RectangleMappingX::parallel_ [private] |
Definition at line 76 of file Trapezoid2RectangleMappingX.h.
Referenced by rectangle(), and trapezoid().
double Trapezoid2RectangleMappingX::x0_ [private] |
Definition at line 73 of file Trapezoid2RectangleMappingX.h.
Referenced by rectangle(), and trapezoid().
double Trapezoid2RectangleMappingX::y0_ [private] |
Definition at line 74 of file Trapezoid2RectangleMappingX.h.
Referenced by rectangle(), and trapezoid().