Data structure for anchor position on sea bed.  
 More...
#include <JAnchor.hh>
Data structure for anchor position on sea bed. 
Definition at line 24 of file JAnchor.hh.
 
◆ JAnchor() [1/2]
  
  
      
        
          | JDETECTOR::JAnchor::JAnchor  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 32 of file JAnchor.hh.
   32              :
   35    {}
JPosition2D()
Default constructor.
 
JObjectID()
Default constructor.
 
 
 
 
◆ JAnchor() [2/2]
  
  
      
        
          | JDETECTOR::JAnchor::JAnchor  | 
          ( | 
          const int |           id,  | 
         
        
           | 
           | 
          const double |           x,  | 
         
        
           | 
           | 
          const double |           y ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | id | identifier  | 
    | x | x position  | 
    | y | y position  | 
  
   
Definition at line 45 of file JAnchor.hh.
 
 
◆ 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.
   85    { 
   86      return this->
getID() < 
object.getID();
 
   87    }
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.
   97    { 
   98      return this->
getID() < id;
 
   99    }
 
 
 
◆ 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.
  109    { 
  110      return this->
getID() > id;
 
  111    }
 
 
 
◆ getPosition() [1/2]
  
  
      
        
          | const JPosition2D & JGEOMETRY2D::JPosition2D::getPosition  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ getPosition() [2/2]
  
  
      
        
          | JPosition2D & JGEOMETRY2D::JPosition2D::getPosition  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ setPosition()
  
  
      
        
          | void JGEOMETRY2D::JPosition2D::setPosition  | 
          ( | 
          const JVector2D & |           pos | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Set position. 
- Parameters
 - 
  
  
 
Definition at line 120 of file JPosition2D.hh.
  121    {
  123    }
JVector2D()
Default constructor.
 
 
 
 
◆ operator JAngle2D()
  
  
      
        
          | JGEOMETRY2D::JPosition2D::operator JAngle2D  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Type conversion operator. 
- Returns
 - angle 
 
Definition at line 131 of file JPosition2D.hh.
  132    {
  134    }
double getY() const
Get y position.
 
double getX() const
Get x position.
 
 
 
 
◆ operator JVersor2D()
  
  
      
        
          | JGEOMETRY2D::JPosition2D::operator JVersor2D  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Type conversion operator. 
- Returns
 - direction 
 
Definition at line 142 of file JPosition2D.hh.
 
 
◆ rotate()
Rotate. 
- Parameters
 - 
  
  
 
- Returns
 - this position 
 
Definition at line 154 of file JPosition2D.hh.
  155    {
  157 
  158      return *this;
  159    }
 
 
 
◆ rotate_back()
Rotate back. 
- Parameters
 - 
  
  
 
- Returns
 - this position 
 
Definition at line 168 of file JPosition2D.hh.
  169    {
  171 
  172      return *this;
  173    }
 
 
 
◆ getDot() [1/3]
  
  
      
        
          | double JGEOMETRY2D::JPosition2D::getDot  | 
          ( | 
          const JAngle2D & |           angle | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 182 of file JPosition2D.hh.
  183    {
  184      return
  185        getX() * angle.getDX() +
 
  186        getY() * angle.getDY();
 
  187    }
 
 
 
◆ getDot() [2/3]
  
  
      
        
          | double JGEOMETRY2D::JPosition2D::getDot  | 
          ( | 
          const JVersor2D & |           versor | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 196 of file JPosition2D.hh.
  197    {
  198      return
  199        getX() * versor.getDX() +
 
  200        getY() * versor.getDY();
 
  201    }
 
 
 
◆ getDot() [3/3]
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getDot  | 
          ( | 
          const JVector2D & |           point | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 235 of file JVector2D.hh.
  236    {
  237      return
  238        getX() * point.getX() + 
 
  239        getY() * point.getY();
 
  240    }
 
 
 
◆ getPerpDot() [1/3]
  
  
      
        
          | double JGEOMETRY2D::JPosition2D::getPerpDot  | 
          ( | 
          const JAngle2D & |           angle | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get perpendicular dot product. 
- Parameters
 - 
  
  
 
- Returns
 - perpendicular dot product 
 
Definition at line 210 of file JPosition2D.hh.
  211    {
  212      return
  213        getX() * angle.getDY() -
 
  214        getY() * angle.getDX();
 
  215    }
 
 
 
◆ getPerpDot() [2/3]
  
  
      
        
          | double JGEOMETRY2D::JPosition2D::getPerpDot  | 
          ( | 
          const JVersor2D & |           dir | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get perpendicular dot product. 
- Parameters
 - 
  
  
 
- Returns
 - perpendicular dot product 
 
Definition at line 224 of file JPosition2D.hh.
  225    {
  226      return
  227        getX() * dir.getDY() -
 
  228        getY() * dir.getDX();
 
  229    }
 
 
 
◆ getPerpDot() [3/3]
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getPerpDot  | 
          ( | 
          const JVector2D & |           point | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get perpendicular dot product. 
- Parameters
 - 
  
  
 
- Returns
 - perpendicular dot product 
 
Definition at line 249 of file JVector2D.hh.
  250    {
  251      return
  252        getX() * point.getY() - 
 
  253        getY() * point.getX();
 
  254    }
 
 
 
◆ transform()
Transform. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 160 of file JVector2D.hh.
  161    {
  163 
  164      return *this;
  165    }
 
 
 
◆ getX()
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getX  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get x position. 
- Returns
 - x position 
 
Definition at line 63 of file JVector2D.hh.
 
 
◆ getY()
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getY  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get y position. 
- Returns
 - y position 
 
Definition at line 74 of file JVector2D.hh.
 
 
◆ negate()
  
  
      
        
          | JVector2D & JGEOMETRY2D::JVector2D::negate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Negate vector. 
- Returns
 - this vector 
 
Definition at line 85 of file JVector2D.hh.
   86    {
   89 
   90      return *this;
   91    }
 
 
 
◆ add()
Add vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 100 of file JVector2D.hh.
  101    {
  102      __x += vector.getX();
 
  103      __y += vector.getY();
 
  104 
  105      return *this;
  106    }
 
 
 
◆ sub()
Subtract vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 115 of file JVector2D.hh.
  116    {
  117      __x -= vector.getX();
 
  118      __y -= vector.getY();
 
  119 
  120      return *this;
  121    }
 
 
 
◆ mul() [1/2]
  
  
      
        
          | JVector2D & JGEOMETRY2D::JVector2D::mul  | 
          ( | 
          const double |           factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Scale vector. 
- Parameters
 - 
  
    | factor | multiplication factor  | 
  
   
- Returns
 - this vector 
 
Definition at line 130 of file JVector2D.hh.
  131    {
  134 
  135      return *this;
  136    }
 
 
 
◆ 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.
  355    {
  356      return static_cast<JFirst_t&>(*this) = JFirst_t().mul(static_cast<const JFirst_t&>(*this), object);
  357    }
 
 
 
◆ div()
  
  
      
        
          | JVector2D & JGEOMETRY2D::JVector2D::div  | 
          ( | 
          const double |           factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Scale vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 145 of file JVector2D.hh.
  146    {
  149 
  150      return *this;
  151    }
 
 
 
◆ equals()
  
  
      
        
          | bool JGEOMETRY2D::JVector2D::equals  | 
          ( | 
          const JVector2D & |           vector,  | 
         
        
           | 
           | 
          const double |           precision = std::numeric_limits<double>::min() ) const | 
         
       
   | 
  
inlineinherited   | 
  
 
Check equality. 
- Parameters
 - 
  
    | vector | vector  | 
    | precision | precision  | 
  
   
- Returns
 - true if vectors are equal; else false 
 
Definition at line 175 of file JVector2D.hh.
  177    {
  178      return (fabs(
getX() - vector.getX()) <= precision &&
 
  179              fabs(
getY() - vector.getY()) <= precision);
 
  180    }
 
 
 
◆ getLengthSquared()
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getLengthSquared  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get length squared. 
- Returns
 - square of length 
 
Definition at line 188 of file JVector2D.hh.
 
 
◆ getLength()
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getLength  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get length. 
- Returns
 - length 
 
Definition at line 199 of file JVector2D.hh.
  200    { 
  202    }
double getLengthSquared() const
Get length squared.
 
 
 
 
◆ getDistanceSquared()
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getDistanceSquared  | 
          ( | 
          const JVector2D & |           point | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get squared of distance to point. 
- Parameters
 - 
  
  
 
- Returns
 - square of distance 
 
Definition at line 211 of file JVector2D.hh.
  212    {
  213      return JVector2D(point).sub(*this).getLengthSquared();
 
  214    }
 
 
 
◆ getDistance()
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getDistance  | 
          ( | 
          const JVector2D & |           point | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get distance to point. 
- Parameters
 - 
  
  
 
- Returns
 - distance 
 
Definition at line 223 of file JVector2D.hh.
  224    {
  226    }
double getDistanceSquared(const JVector2D &point) const
Get squared of distance to point.
 
 
 
 
◆ operator>>
  
  
      
        
          | std::istream & operator>>  | 
          ( | 
          std::istream & |           in,  | 
         
        
           | 
           | 
          JAnchor & |           anchor ) | 
         
       
   | 
  
friend   | 
  
 
Read JAnchor from input. 
- Parameters
 - 
  
  
 
- Returns
 - input stream 
 
Definition at line 60 of file JAnchor.hh.
   61    {
   62      int    id;
   64 
   65      if (in >> id >> x >> y)
   67 
   68      return in;
   69    }
JAnchor()
Default constructor.
 
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JAnchor & |           anchor ) | 
         
       
   | 
  
friend   | 
  
 
Write JAnchor to output. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 79 of file JAnchor.hh.
   80    {
   81      out << anchor.getID();
   82      out << ' ';
   83      out << anchor.getX();
   84      out << ' ';
   85      out << anchor.getY();
   86 
   87      return out;
   88    }
 
 
 
◆ __id
  
  
      
        
          | int JLANG::JObjectID::__id | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ __x
  
  
      
        
          | double JGEOMETRY2D::JVector2D::__x | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ __y
  
  
      
        
          | double JGEOMETRY2D::JVector2D::__y | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: