Center.  
 More...
#include <JGeometry2DToolkit.hh>
Center. 
Definition at line 52 of file JGeometry2DToolkit.hh.
 
Constructor. 
- Parameters
 - 
  
    | p0 | first point  | 
    | p1 | second point  | 
  
   
Definition at line 62 of file JGeometry2DToolkit.hh.
JVector2D()
Default constructor. 
 
JVector2D & div(const double factor)
Scale vector. 
 
JVector2D & add(const JVector2D &vector)
Add vector. 
 
 
 
 
Constructor. 
- Parameters
 - 
  
    | p0 | first point  | 
    | p1 | second point  | 
    | p2 | third point  | 
  
   
Definition at line 80 of file JGeometry2DToolkit.hh.
JVector2D()
Default constructor. 
 
JVector2D & div(const double factor)
Scale vector. 
 
JVector2D & add(const JVector2D &vector)
Add vector. 
 
 
 
 
template<class T > 
  
  
      
        
          | JGEOMETRY2D::JCenter2D::JCenter2D  | 
          ( | 
          T  | 
          __begin,  | 
         
        
           | 
           | 
          T  | 
          __end  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | __begin | begin of data  | 
    | __end | end of data  | 
  
   
Definition at line 100 of file JGeometry2DToolkit.hh.
  104       if (__begin != __end) {
 
  106         for (
T i = __begin; 
i != __end; ++
i) {
 
JVector2D()
Default constructor. 
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
JVector2D & div(const double factor)
Scale vector. 
 
JVector2D & add(const JVector2D &vector)
Add vector. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getX  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get x position. 
- Returns
 - x position 
 
Definition at line 63 of file JVector2D.hh.
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getY  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get y position. 
- Returns
 - y position 
 
Definition at line 74 of file JVector2D.hh.
 
 
  
  
      
        
          | JVector2D& JGEOMETRY2D::JVector2D::negate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Negate vector. 
- Returns
 - this vector 
 
Definition at line 85 of file JVector2D.hh.
 
 
Add vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 100 of file JVector2D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
 
 
 
Subtract vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 115 of file JVector2D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
 
 
 
  
  
      
        
          | 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.
 
 
template<class JFirst_t, class JSecond_t = JNullType> 
  
  
      
        
          | 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);
 
 
 
 
  
  
      
        
          | JVector2D& JGEOMETRY2D::JVector2D::div  | 
          ( | 
          const double  | 
          factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Scale vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 145 of file JVector2D.hh.
 
 
Transform. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 160 of file JVector2D.hh.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
 
 
 
  
  
      
        
          | 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.
  178       return (fabs(
getX() - vector.
getX()) <= precision &&
 
  179               fabs(
getY() - vector.
getY()) <= precision);
 
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getLengthSquared  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get length squared. 
- Returns
 - square of length 
 
Definition at line 188 of file JVector2D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getLength  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get length. 
- Returns
 - length 
 
Definition at line 199 of file JVector2D.hh.
double getLengthSquared() const 
Get length squared. 
 
 
 
 
  
  
      
        
          | 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.
  213       return JVector2D(point).sub(*this).getLengthSquared();
 
JVector2D()
Default constructor. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getDistance  | 
          ( | 
          const JVector2D &  | 
          point | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get distance to point. 
- Parameters
 - 
  
  
 
- Returns
 - distance 
 
Definition at line 223 of file JVector2D.hh.
double getDistanceSquared(const JVector2D &point) const 
Get squared of distance to point. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::getDot  | 
          ( | 
          const JVector2D &  | 
          point | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 235 of file JVector2D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
 
 
 
  
  
      
        
          | 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.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::__x | 
         
       
   | 
  
protectedinherited   | 
  
 
 
  
  
      
        
          | double JGEOMETRY2D::JVector2D::__y | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: