34 public JMath<JAngle2D>
177 const double precision = std::numeric_limits<double>::min())
const
222 return in >> angle.
__phi;
237 return out << format << angle.
getPhi();
250 return in >> angle.
__phi;
263 return out << angle.
__phi;
JFormat_t & getFormat()
Get format for given type.
Base class for data structures with artithmetic capabilities.
Data structure for angle in two dimensions.
JAngle2D & div(const double factor)
Scale angle.
JAngle2D(const double phi)
Constructor.
JAngle2D & negate()
Negate angle.
JAngle2D & normalise()
Normalise angle.
double getDot(const JAngle2D &angle) const
Get dot product.
friend std::istream & operator>>(std::istream &in, JAngle2D &angle)
Read angle from input.
JAngle2D & sub(const JAngle2D &angle)
Subtract angle.
friend JReader & operator>>(JReader &in, JAngle2D &angle)
Read angle from input.
friend JWriter & operator<<(JWriter &out, const JAngle2D &angle)
Write angle to output.
double getDY() const
Get y direction.
double getDX() const
Get x direction.
friend std::ostream & operator<<(std::ostream &out, const JAngle2D &angle)
Write angle to output.
bool equals(const JAngle2D &angle, const double precision=std::numeric_limits< double >::min()) const
Check equality.
JAngle2D(const double x, const double y)
Constructor.
JAngle2D & mul(const double factor)
Scale angle.
double getPhi() const
Get phi angle.
JAngle2D()
Default constructor.
JAngle2D & add(const JAngle2D &angle)
Add angle.
Interface for binary input.
Interface for binary output.
Auxiliary classes and methods for 2D geometrical objects and operations.
static const double PI
Mathematical constants.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary base class for aritmetic operations of derived class types.