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