19 namespace JGEOMETRY2D {}
20 namespace JPP {
using namespace JGEOMETRY2D; }
22 namespace JGEOMETRY2D {
34 public JMath<JAngle2D>
177 const double precision = std::numeric_limits<double>::min())
const
222 return in >> angle.
__phi;
235 const JFormat format(out, getFormat<JAngle2D>(
JFormat_t(9, 5, std::ios::fixed | std::ios::showpos)));
237 return out << format << angle.
getPhi();
250 return in >> angle.
__phi;
263 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.
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
JAngle2D(const double phi)
Constructor.
Base class for data structures with artithmetic capabilities.
double getDY() const
Get y direction.
JAngle2D & negate()
Negate angle.