#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 24 of file Trapezoid2RectangleMappingX.h.
Trapezoid2RectangleMappingX::Trapezoid2RectangleMappingX | ( | ) | [inline] |
Definition at line 27 of file Trapezoid2RectangleMappingX.h.
{}
Trapezoid2RectangleMappingX::Trapezoid2RectangleMappingX | ( | double | x0, |
double | y0, | ||
double | bovera, | ||
double | h | ||
) | [inline] |
normal trapezoid case, a != b
Definition at line 30 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout.
Trapezoid2RectangleMappingX::Trapezoid2RectangleMappingX | ( | double | x0, |
double | y0, | ||
double | k | ||
) | [inline] |
special parallelogram case, a == b. The meaning of k changes.
Definition at line 42 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout.
void Trapezoid2RectangleMappingX::rectangle | ( | double | xtrap, |
double | ytrap, | ||
double & | xrec, | ||
double & | yrec | ||
) | const [inline] |
Definition at line 51 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout.
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 63 of file Trapezoid2RectangleMappingX.h.
References gather_cfg::cout.
Referenced by TrapezoidalCartesianMFGrid::fromGridFrame(), and TrapezoidalCylindricalMFGrid::fromGridFrame().
double Trapezoid2RectangleMappingX::k_ [private] |
Definition at line 77 of file Trapezoid2RectangleMappingX.h.
bool Trapezoid2RectangleMappingX::parallel_ [private] |
Definition at line 78 of file Trapezoid2RectangleMappingX.h.
double Trapezoid2RectangleMappingX::x0_ [private] |
Definition at line 75 of file Trapezoid2RectangleMappingX.h.
double Trapezoid2RectangleMappingX::y0_ [private] |
Definition at line 76 of file Trapezoid2RectangleMappingX.h.