Line segment in two dimensions.  
 More...
#include <JSegment3D.hh>
Line segment in two dimensions. 
Definition at line 33 of file JSegment3D.hh.
 
  
  
      
        
          | JGEOMETRY3D::JSegment3D::JSegment3D  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 40 of file JSegment3D.hh.
std::pair< JPosition3D, JPosition3D > JSegment3D_t
Type definition of line segment in two dimensions. 
 
 
 
 
Constructor. 
- Parameters
 - 
  
    | A | start position  | 
    | B | end position  | 
  
   
Definition at line 51 of file JSegment3D.hh.
std::pair< JPosition3D, JPosition3D > JSegment3D_t
Type definition of line segment in two dimensions. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JSegment3D::getLengthSquared  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get length squared. 
- Returns
 - square of length 
 
Definition at line 62 of file JSegment3D.hh.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
 
Data structure for vector in three dimensions. 
 
double getLengthSquared() const 
Get length squared. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JSegment3D::getLength  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get length. 
- Returns
 - length 
 
Definition at line 73 of file JSegment3D.hh.
double getLengthSquared() const 
Get length squared. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JSegment3D::getDistanceSquared  | 
          ( | 
          const JVector3D &  | 
          point,  | 
         
        
           | 
           | 
          const double  | 
          precision = 1.0e-8  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
Get squared of distance to point. 
- Parameters
 - 
  
    | point | point  | 
    | precision | precision  | 
  
   
- Returns
 - square of distance 
 
Definition at line 86 of file JSegment3D.hh.
   90       const double gp = 
D.getLengthSquared();
 
   96         double u = 
D.getDot(U);
 
  108         return D.getLengthSquared();
 
  112         return this->
first.getDistanceSquared(point);
 
do echo Generating $dir eval D
 
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
 
Data structure for vector in three dimensions. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JSegment3D::getDistance  | 
          ( | 
          const JVector3D &  | 
          point | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get distance to point. 
- Parameters
 - 
  
  
 
- Returns
 - distance 
 
Definition at line 123 of file JSegment3D.hh.
double getDistanceSquared(const JVector3D &point, const double precision=1.0e-8) const 
Get squared of distance to point. 
 
 
 
 
  
  
      
        
          | double JGEOMETRY3D::JSegment3D::getDot  | 
          ( | 
          const JSegment3D &  | 
          segment | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 135 of file JSegment3D.hh.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
 
Data structure for vector in three dimensions. 
 
double getDot(const JVector3D &vector) const 
Get dot product. 
 
 
 
 
Read segment from input. 
- Parameters
 - 
  
  
 
- Returns
 - reader 
 
Definition at line 148 of file JSegment3D.hh.
  151       in >> segment.second;
 
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
 
 
 
 
Write segment to output. 
- Parameters
 - 
  
  
 
- Returns
 - writer 
 
Definition at line 164 of file JSegment3D.hh.
  166       out << segment.first;
 
  167       out << segment.second;
 
 
 
 
The documentation for this class was generated from the following file: