Data structure for tripod.
More...
#include <JTripod.hh>
Data structure for tripod.
Definition at line 32 of file JTripod.hh.
◆ JTripod() [1/2]
JDETECTOR::JTripod::JTripod |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 40 of file JTripod.hh.
◆ JTripod() [2/2]
JDETECTOR::JTripod::JTripod |
( |
const int |
id, |
|
|
const JUTMPosition & |
position |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
id | identifier |
position | UTM positiom |
Definition at line 50 of file JTripod.hh.
JObjectID()
Default constructor.
JUTMPosition()
Default constructor.
◆ getID() [1/2]
int JLANG::JObjectID::getID |
( |
| ) |
const |
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 50 of file JObjectID.hh.
◆ getID() [2/2]
int& JLANG::JObjectID::getID |
( |
| ) |
|
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 61 of file JObjectID.hh.
◆ setID()
void JLANG::JObjectID::setID |
( |
const int |
id | ) |
|
|
inlineinherited |
Set identifier.
- Parameters
-
Definition at line 72 of file JObjectID.hh.
◆ less() [1/2]
bool JLANG::JObjectID::less |
( |
const JObjectID & |
object | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 84 of file JObjectID.hh.
86 return this->
getID() <
object.getID();
int getID() const
Get identifier.
◆ less() [2/2]
bool JLANG::JObjectID::less |
( |
const int |
id | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 96 of file JObjectID.hh.
98 return this->
getID() < id;
◆ more()
bool JLANG::JObjectID::more |
( |
const int |
id | ) |
const |
|
inlineinherited |
More than method.
- Parameters
-
- Returns
- true if this identifier greater than given identifier; else false
Definition at line 108 of file JObjectID.hh.
110 return this->
getID() > id;
◆ getUTMPosition()
const JUTMPosition& JUTM::JUTMPosition::getUTMPosition |
( |
| ) |
const |
|
inlineinherited |
Get UTM position.
- Returns
- position
Definition at line 84 of file JUTMPosition.hh.
Data structure for UTM position.
◆ setUTMPosition()
void JUTM::JUTMPosition::setUTMPosition |
( |
const JUTMPosition & |
position | ) |
|
|
inlineinherited |
◆ getPosition()
Get position.
- Returns
- position
Definition at line 106 of file JUTMPosition.hh.
108 return JPosition3D(this->
getX(), this->
getY(), this->
getZ());
double getZ() const
Get z.
double getY() const
Get y.
double getX() const
Get x.
◆ operator JPosition3D()
Type conversion operator.
- Returns
- position
Definition at line 117 of file JUTMPosition.hh.
JPosition3D getPosition() const
Get position.
◆ getUTMEast()
double JUTM::JUTMPosition::getUTMEast |
( |
| ) |
const |
|
inlineinherited |
◆ getUTMNorth()
double JUTM::JUTMPosition::getUTMNorth |
( |
| ) |
const |
|
inlineinherited |
◆ getUTMZ()
double JUTM::JUTMPosition::getUTMZ |
( |
| ) |
const |
|
inlineinherited |
◆ getX()
double JUTM::JUTMPosition::getX |
( |
| ) |
const |
|
inlineinherited |
◆ getY()
double JUTM::JUTMPosition::getY |
( |
| ) |
const |
|
inlineinherited |
◆ getZ()
double JUTM::JUTMPosition::getZ |
( |
| ) |
const |
|
inlineinherited |
◆ negate()
Negate UTM position.
- Returns
- this UTM position
Definition at line 194 of file JUTMPosition.hh.
◆ add()
Add UTM position.
- Parameters
-
- Returns
- this UTM position
Definition at line 210 of file JUTMPosition.hh.
double getUTMNorth() const
Get UTM north.
double getUTMEast() const
Get UTM east.
double getUTMZ() const
Get UTM Z.
◆ sub()
Subtract UTM position.
- Parameters
-
- Returns
- this UTM position
Definition at line 226 of file JUTMPosition.hh.
◆ mul() [1/2]
JUTMPosition& JUTM::JUTMPosition::mul |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale UTM position.
- Parameters
-
factor | multiplication factor |
- Returns
- this UTM position
Definition at line 242 of file JUTMPosition.hh.
◆ mul() [2/2]
template<class JFirst_t , class JSecond_t >
JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul |
( |
const JSecond_t & |
object | ) |
|
|
inlineinherited |
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 354 of file JMath.hh.
356 return static_cast<JFirst_t&
>(*this) = JFirst_t().mul(
static_cast<const JFirst_t&
>(*
this),
object);
◆ div()
JUTMPosition& JUTM::JUTMPosition::div |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale UTM position.
- Parameters
-
- Returns
- this UTM position
Definition at line 258 of file JUTMPosition.hh.
◆ getDisplacement()
double JUTM::JUTMPosition::getDisplacement |
( |
const JUTMPosition & |
position | ) |
const |
|
inlineinherited |
Get displacement to position.
The displacement corresponds to the 2D distance in the (East,North) plane.
- Parameters
-
- Returns
- displacement
Definition at line 276 of file JUTMPosition.hh.
281 return sqrt(
x*
x +
y*
y);
◆ operator>> [1/2]
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JTripod & |
tripod |
|
) |
| |
|
friend |
Read tripod from input.
- Parameters
-
in | input stream |
tripod | tripod |
- Returns
- input stream
Definition at line 64 of file JTripod.hh.
◆ operator<< [1/2]
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JTripod & |
tripod |
|
) |
| |
|
friend |
Write tripod to output.
- Parameters
-
out | output stream |
tripod | tripod |
- Returns
- output stream
Definition at line 80 of file JTripod.hh.
82 out << static_cast<const JObjectID&> (tripod);
84 out << static_cast<const JUTMPosition&>(tripod);
◆ operator>> [2/2]
Read tripod from input.
- Parameters
-
- Returns
- reader
Definition at line 97 of file JTripod.hh.
◆ operator<< [2/2]
Write tripod to output.
- Parameters
-
- Returns
- writer
Definition at line 113 of file JTripod.hh.
115 out << static_cast<const JObjectID&> (tripod);
116 out << static_cast<const JUTMPosition&>(tripod);
◆ __id
int JLANG::JObjectID::__id |
|
protectedinherited |
◆ east
double JUTM::JUTMPosition::east |
|
protectedinherited |
◆ north
double JUTM::JUTMPosition::north |
|
protectedinherited |
double JUTM::JUTMPosition::z |
|
protectedinherited |
The documentation for this class was generated from the following file: