Go to the documentation of this file.
70 const double v = x*x + y*y + z*z;
215 const double precision = std::numeric_limits<double>::min())
const
JAngle3D & mul(const double factor)
Scale angle.
Interface for binary input.
bool equals(const JAngle3D &angle, const double precision=std::numeric_limits< double >::min()) const
Check equality.
JAngle3D & normalise()
Normalise angles.
friend std::istream & operator>>(std::istream &in, JAngle3D &angle)
Write angle from input.
friend JReader & operator>>(JReader &in, JAngle3D &angle)
Read angle from input.
JAngle3D & add(const JAngle3D &angle)
Add angle.
double getPhi() const
Get phi angle.
Auxiliary base class for aritmetic operations of derived class types.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JAngle3D(const double theta, const double phi)
Constructor.
Interface for binary output.
JAngle3D()
Default constructor.
double getDX() const
Get x direction.
JAngle3D & sub(const JAngle3D &angle)
Subtract angle.
double getTheta() const
Get theta angle.
Data structure for angles in three dimensions.
double getDZ() const
Get z direction.
JAngle3D & div(const double factor)
Scale angle.
double getDY() const
Get y direction.
Auxiliary classes and methods for 3D geometrical objects and operations.
double getDot(const JAngle3D &angle) const
Get dot product.
JAngle3D(const double x, const double y, const double z)
Constructor.
friend std::ostream & operator<<(std::ostream &out, const JAngle3D &angle)
Write angle to output.
friend JWriter & operator<<(JWriter &out, const JAngle3D &angle)
Write angle to output.
JAngle3D & negate()
Negate angle.