Jpp  17.3.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Attributes | Friends | List of all members
JEllipse Struct Reference

Auxiliary data structure for ellipse. More...

Public Attributes

double x1
 
double y1
 
double r1
 
double r2
 
double phimin
 
double phimax
 

Friends

std::istream & operator>> (std::istream &in, JEllipse &ellipse)
 Read ellipse from input stream. More...
 
std::ostream & operator<< (std::ostream &out, const JEllipse &ellipse)
 Write ellipse to output stream. More...
 

Detailed Description

Auxiliary data structure for ellipse.

Definition at line 15 of file JEllipse.cc.

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  in,
JEllipse ellipse 
)
friend

Read ellipse from input stream.

Parameters
ininput stream
ellipseellipse
Returns
input stream

Definition at line 24 of file JEllipse.cc.

25  {
26  if (in >> ellipse.x1 >> ellipse.y1 >> ellipse.r1) {
27 
28  if (in >> ellipse.r2) {
29 
30  if (in >> ellipse.phimin >> ellipse.phimax) {
31 
32  } else {
33 
34  ellipse.phimin = 0.0;
35  ellipse.phimax = 360.0;
36  }
37 
38  } else {
39 
40  ellipse.r2 = ellipse.r1;
41  ellipse.phimin = 0.0;
42  ellipse.phimax = 360.0;
43  }
44  }
45 
46  return in;
47  }
double r2
Definition: JEllipse.cc:71
double x1
Definition: JEllipse.cc:68
double phimax
Definition: JEllipse.cc:73
double r1
Definition: JEllipse.cc:70
double y1
Definition: JEllipse.cc:69
double phimin
Definition: JEllipse.cc:72
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
Definition: JCanberra.sh:46
std::ostream& operator<< ( std::ostream &  out,
const JEllipse ellipse 
)
friend

Write ellipse to output stream.

Parameters
outoutput stream
ellipseellipse
Returns
output stream

Definition at line 56 of file JEllipse.cc.

57  {
58  out << ellipse.x1 << ' '
59  << ellipse.y1 << ' '
60  << ellipse.r1 << ' '
61  << ellipse.r2 << ' '
62  << ellipse.phimin << ' '
63  << ellipse.phimax;
64 
65  return out;
66  }
double r2
Definition: JEllipse.cc:71
double x1
Definition: JEllipse.cc:68
double phimax
Definition: JEllipse.cc:73
double r1
Definition: JEllipse.cc:70
double y1
Definition: JEllipse.cc:69
double phimin
Definition: JEllipse.cc:72

Member Data Documentation

double JEllipse::x1

Definition at line 68 of file JEllipse.cc.

double JEllipse::y1

Definition at line 69 of file JEllipse.cc.

double JEllipse::r1

Definition at line 70 of file JEllipse.cc.

double JEllipse::r2

Definition at line 71 of file JEllipse.cc.

double JEllipse::phimin

Definition at line 72 of file JEllipse.cc.

double JEllipse::phimax

Definition at line 73 of file JEllipse.cc.


The documentation for this struct was generated from the following file: