18 namespace JGEOMETRY2D {}
19 namespace JPP {
using namespace JGEOMETRY2D; }
21 namespace JGEOMETRY2D {
33 public JMath<JAngle2D>
176 const double precision = std::numeric_limits<double>::min())
const
221 return in >> angle.
__phi;
234 return out << angle.
getPhi();
247 return in >> angle.
__phi;
260 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.
bool equals(const JAngle2D &angle, const double precision=std::numeric_limits< double >::min()) const
Check equality.
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.
static const double PI
Mathematical constants.
Interface for binary input.
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.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in