Eigen values in 3D.  
 More...
#include <JEigenValues3D.hh>
Eigen values in 3D. 
Definition at line 24 of file JEigenValues3D.hh.
 
template<class T > 
  
  
      
        
          | JGEOMETRY3D::JEigenValues3D::JEigenValues3D  | 
          ( | 
          T  | 
          __begin,  | 
         
        
           | 
           | 
          T  | 
          __end  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | __begin | begin of data  | 
    | __end | end of data  | 
  
   
Definition at line 35 of file JEigenValues3D.hh.
   46       for (
int i = 0; i != 3; ++i) {
 
   47         for (
int j = 0; j != 3; ++j) {
 
   52       for (T i = __begin; i != __end; ++i) {
 
   54         const double dx = center.getX() - i->getX();
 
   55         const double dy = center.getY() - i->getY();
 
   56         const double dz = center.getZ() - i->getZ();
 
   72       const TVectorD V = TMatrixDSymEigen(A).GetEigenValues();   
 
   74       N = V.GetNoElements();
 
JVector3D()
Default constructor. 
 
 
 
 
  
  
      
        
          | int JGEOMETRY3D::JEigenValues3D::getN  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get number of eigen values. 
- Returns
 - number of eigen values 
 
Definition at line 99 of file JEigenValues3D.hh.
 
 
  
  
      
        
          | int JGEOMETRY3D::JEigenValues3D::getN  | 
          ( | 
          double  | 
          precision | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get number of eigen values with minimal value. 
- Parameters
 - 
  
  
 
- Returns
 - number of eigen values 
 
Definition at line 111 of file JEigenValues3D.hh.
  115       if (fabs(
getX()) >= precision) ++n;
 
  116       if (fabs(
getY()) >= precision) ++n;
 
  117       if (fabs(
getZ()) >= precision) ++n;
 
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
double getZ() const 
Get z position. 
 
 
 
 
  
  
      
        
          | JGEOMETRY3D::JVector3D::operator JVector2D  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Type conversion operator. 
- Returns
 - JVector2D 
 
Definition at line 81 of file JVector3D.hh.
   83       return JVector2D(this->
getX(), this->
getY());
 
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getX  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get x position. 
- Returns
 - x position 
 
Definition at line 92 of file JVector3D.hh.
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getY  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get y position. 
- Returns
 - y position 
 
Definition at line 102 of file JVector3D.hh.
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getZ  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get z position. 
- Returns
 - z position 
 
Definition at line 113 of file JVector3D.hh.
 
 
  
  
      
        
          | JVector3D& JGEOMETRY3D::JVector3D::negate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Negate vector. 
- Returns
 - this vector 
 
Definition at line 124 of file JVector3D.hh.
 
 
Add vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 140 of file JVector3D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
double getZ() const 
Get z position. 
 
 
 
 
Subtract vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 156 of file JVector3D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
double getZ() const 
Get z position. 
 
 
 
 
  
  
      
        
          | JVector3D& JGEOMETRY3D::JVector3D::mul  | 
          ( | 
          const double  | 
          factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Scale vector. 
- Parameters
 - 
  
    | factor | multiplication factor  | 
  
   
- Returns
 - this vector 
 
Definition at line 172 of file JVector3D.hh.
 
 
Multiply with object. 
- Parameters
 - 
  
  
 
- Returns
 - result object 
 
Definition at line 273 of file JMath.hh.
Auxiliary class for product evaluation of objects. 
 
 
 
 
  
  
      
        
          | JVector3D& JGEOMETRY3D::JVector3D::div  | 
          ( | 
          const double  | 
          factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Scale vector. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 188 of file JVector3D.hh.
 
 
Transform. 
- Parameters
 - 
  
  
 
- Returns
 - this vector 
 
Definition at line 204 of file JVector3D.hh.
 
 
  
  
      
        
          | bool JGEOMETRY3D::JVector3D::equals  | 
          ( | 
          const JVector3D &  | 
          vector | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Check equality. 
- Parameters
 - 
  
  
 
- Returns
 - true if vectors are equal; else false 
 
Definition at line 218 of file JVector3D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
double getZ() const 
Get z position. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getLengthSquared  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get length squared. 
- Returns
 - square of length 
 
Definition at line 231 of file JVector3D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
double getZ() const 
Get z position. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getLength  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get length. 
- Returns
 - length 
 
Definition at line 242 of file JVector3D.hh.
double getLengthSquared() const 
Get length squared. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getDistanceSquared  | 
          ( | 
          const JVector3D &  | 
          pos | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get squared of distance to point. 
- Parameters
 - 
  
  
 
- Returns
 - square of distance 
 
Definition at line 254 of file JVector3D.hh.
  256       return JVector3D(pos).sub(*this).getLengthSquared();
 
JVector3D()
Default constructor. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getDistance  | 
          ( | 
          const JVector3D &  | 
          pos | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get distance to point. 
- Parameters
 - 
  
  
 
- Returns
 - distance 
 
Definition at line 266 of file JVector3D.hh.
double getDistanceSquared(const JVector3D &pos) const 
Get squared of distance to point. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::getDot  | 
          ( | 
          const JVector3D &  | 
          vector | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 278 of file JVector3D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
double getZ() const 
Get z position. 
 
 
 
 
Get cross product. 
Note that this vector should not overlap with the first or second vector,
- Parameters
 - 
  
    | first | first vector  | 
    | second | second vector  | 
  
   
- Returns
 - this vector 
 
Definition at line 295 of file JVector3D.hh.
double getY() const 
Get y position. 
 
double getX() const 
Get x position. 
 
double getZ() const 
Get z position. 
 
 
 
 
  
  
      
        
          | int JGEOMETRY3D::JEigenValues3D::N | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::__x | 
         
       
   | 
  
protectedinherited   | 
  
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::__y | 
         
       
   | 
  
protectedinherited   | 
  
 
 
  
  
      
        
          | double JGEOMETRY3D::JVector3D::__z | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: