18 namespace JGEOMETRY3D {}
19 namespace JPP {
using namespace JGEOMETRY3D; }
21 namespace JGEOMETRY3D {
70 const double v = x*x + y*y + z*z;
215 const double precision = std::numeric_limits<double>::min())
const
Data structure for angles in three dimensions.
Interface for binary output.
friend JReader & operator>>(JReader &in, JAngle3D &angle)
Read angle from input.
Auxiliary base class for aritmetic operations of derived class types.
double getPhi() const
Get phi angle.
friend JWriter & operator<<(JWriter &out, const JAngle3D &angle)
Write angle to output.
JAngle3D & add(const JAngle3D &angle)
Add angle.
JAngle3D & normalise()
Normalise angles.
double getDot(const JAngle3D &angle) const
Get dot product.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
double getTheta() const
Get theta angle.
friend std::istream & operator>>(std::istream &in, JAngle3D &angle)
Write angle from input.
JAngle3D()
Default constructor.
JAngle3D(const double theta, const double phi)
Constructor.
Interface for binary input.
JAngle3D & sub(const JAngle3D &angle)
Subtract angle.
JAngle3D & div(const double factor)
Scale angle.
bool equals(const JAngle3D &angle, const double precision=std::numeric_limits< double >::min()) const
Check equality.
Base class for data structures with artithmetic capabilities.
JAngle3D(const double x, const double y, const double z)
Constructor.
JAngle3D & negate()
Negate angle.
double getDX() const
Get x direction.
JAngle3D & mul(const double factor)
Scale angle.
friend std::ostream & operator<<(std::ostream &out, const JAngle3D &angle)
Write angle to output.
double getDZ() const
Get z direction.
double getDY() const
Get y direction.