17 namespace JGEOMETRY2D {}
18 namespace JPP {
using namespace JGEOMETRY2D; }
20 namespace JGEOMETRY2D {
217 return in >> angle.
__phi;
230 return out << angle.
getPhi();
243 return in >> angle.
__phi;
256 return out << angle.
__phi;
JAngle2D & div(const double factor)
Scale angle.
double getDX() const
Get x direction.
Data structure for angle in two dimensions.
Interface for binary output.
Auxiliary base class for aritmetic operations of derived class types.
friend JWriter & operator<<(JWriter &out, const JAngle2D &angle)
Write angle to output.
friend std::ostream & operator<<(std::ostream &out, const JAngle2D &angle)
Write angle to output.
friend JReader & operator>>(JReader &in, JAngle2D &angle)
Read angle from input.
JAngle2D & sub(const JAngle2D &angle)
Subtract angle.
JAngle2D & mul(const double factor)
Scale angle.
JAngle2D & normalise()
Normalise angle.
friend std::istream & operator>>(std::istream &in, JAngle2D &angle)
Read angle from input.
JAngle2D & add(const JAngle2D &angle)
Add angle.
JAngle2D()
Default constructor.
Interface for binary input.
bool equals(const JAngle2D &angle) const
Check equality.
double getDot(const JAngle2D &angle) const
Get dot product.
double getPhi() const
Get phi angle.
JAngle2D(const double x, const double y)
Constructor.
JAngle2D(const double phi)
Constructor.
Base class for data structures with artithmetic capabilities.
double getDY() const
Get y direction.
JAngle2D & negate()
Negate angle.