CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

HepGeom::Point3D< double > Class Reference

#include <Point3D.h>

Inheritance diagram for HepGeom::Point3D< double >:
HepGeom::BasicVector3D< double > HepGeom::BasicVector3D< double >

Public Member Functions

 Point3D ()
 
 Point3D (double x1, double y1, double z1)
 
 Point3D (const float *a)
 
 Point3D (const double *a)
 
 Point3D (const Point3D< double > &v)
 
 Point3D (const BasicVector3D< float > &v)
 
 Point3D (const BasicVector3D< double > &v)
 
 ~Point3D ()
 
 Point3D (const CLHEP::Hep3Vector &v)
 
 operator CLHEP::Hep3Vector () const
 
Point3D< double > & operator= (const Point3D< double > &v)
 
Point3D< double > & operator= (const BasicVector3D< float > &v)
 
Point3D< double > & operator= (const BasicVector3D< double > &v)
 
double distance2 () const
 
double distance2 (const Point3D< double > &p) const
 
double distance () const
 
double distance (const Point3D< double > &p) const
 
Point3D< double > & transform (const Transform3D &m)
 
 Point3D ()
 
 Point3D (double x1, double y1, double z1)
 
 Point3D (const float *a)
 
 Point3D (const double *a)
 
 Point3D (const Point3D< double > &v)
 
 Point3D (const BasicVector3D< float > &v)
 
 Point3D (const BasicVector3D< double > &v)
 
 ~Point3D ()
 
 Point3D (const CLHEP::Hep3Vector &v)
 
 operator CLHEP::Hep3Vector () const
 
Point3D< double > & operator= (const Point3D< double > &v)
 
Point3D< double > & operator= (const BasicVector3D< float > &v)
 
Point3D< double > & operator= (const BasicVector3D< double > &v)
 
double distance2 () const
 
double distance2 (const Point3D< double > &p) const
 
double distance () const
 
double distance (const Point3D< double > &p) const
 
Point3D< double > & transform (const Transform3D &m)
 
- Public Member Functions inherited from HepGeom::BasicVector3D< double >
 BasicVector3D (double x1, double y1, double z1)
 
 BasicVector3D (const BasicVector3D< float > &v)
 
 BasicVector3D (double x1, double y1, double z1)
 
 BasicVector3D (const BasicVector3D< float > &v)
 
virtual ~BasicVector3D ()
 
virtual ~BasicVector3D ()
 
 operator double * ()
 
 operator double * ()
 
 operator const double * () const
 
 operator const double * () const
 
 operator CLHEP::Hep3Vector () const
 
 operator CLHEP::Hep3Vector () const
 
BasicVector3D< double > & operator= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator+= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator+= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator-= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator-= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator*= (double a)
 
BasicVector3D< double > & operator*= (double a)
 
BasicVector3D< double > & operator/= (double a)
 
BasicVector3D< double > & operator/= (double a)
 
double operator() (int i) const
 
doubleoperator() (int i)
 
double operator() (int i) const
 
doubleoperator() (int i)
 
double operator[] (int i) const
 
doubleoperator[] (int i)
 
double operator[] (int i) const
 
doubleoperator[] (int i)
 
double x () const
 
double x () const
 
double y () const
 
double y () const
 
double z () const
 
double z () const
 
void setX (double a)
 
void setX (double a)
 
void setY (double a)
 
void setY (double a)
 
void setZ (double a)
 
void setZ (double a)
 
void set (double x1, double y1, double z1)
 
void set (double x1, double y1, double z1)
 
double perp2 () const
 
double perp2 (const BasicVector3D< double > &v) const
 
double perp2 () const
 
double perp2 (const BasicVector3D< double > &v) const
 
double perp () const
 
double perp (const BasicVector3D< double > &v) const
 
double perp () const
 
double perp (const BasicVector3D< double > &v) const
 
double rho () const
 
double rho () const
 
void setPerp (double rh)
 
void setPerp (double rh)
 
double mag2 () const
 
double mag2 () const
 
double mag () const
 
double mag () const
 
double r () const
 
double r () const
 
double phi () const
 
double phi () const
 
double theta () const
 
double theta () const
 
double cosTheta () const
 
double cosTheta () const
 
double getR () const
 
double getR () const
 
double getPhi () const
 
double getPhi () const
 
double getTheta () const
 
double getTheta () const
 
void setMag (double ma)
 
void setMag (double ma)
 
void setR (double ma)
 
void setR (double ma)
 
void setPhi (double ph)
 
void setPhi (double ph)
 
void setTheta (double th)
 
void setTheta (double th)
 
double pseudoRapidity () const
 
double pseudoRapidity () const
 
float pseudoRapidity () const
 
double pseudoRapidity () const
 
double eta () const
 
double eta () const
 
double getEta () const
 
double getEta () const
 
void setEta (double a)
 
void setEta (double a)
 
void setEta (float a)
 
void setEta (double a)
 
double dot (const BasicVector3D< double > &v) const
 
double dot (const BasicVector3D< double > &v) const
 
BasicVector3D< doublecross (const BasicVector3D< double > &v) const
 
BasicVector3D< doublecross (const BasicVector3D< double > &v) const
 
double angle (const BasicVector3D< double > &v) const
 
double angle (const BasicVector3D< double > &v) const
 
float angle (const BasicVector3D< float > &v) const
 
double angle (const BasicVector3D< double > &v) const
 
BasicVector3D< doubleunit () const
 
BasicVector3D< doubleunit () const
 
BasicVector3D< doubleorthogonal () const
 
BasicVector3D< doubleorthogonal () const
 
BasicVector3D< double > & rotateX (double a)
 
BasicVector3D< double > & rotateX (double a)
 
BasicVector3D< float > & rotateX (float a)
 
BasicVector3D< double > & rotateX (double a)
 
BasicVector3D< double > & rotateY (double a)
 
BasicVector3D< double > & rotateY (double a)
 
BasicVector3D< float > & rotateY (float a)
 
BasicVector3D< double > & rotateY (double a)
 
BasicVector3D< double > & rotateZ (double a)
 
BasicVector3D< double > & rotateZ (double a)
 
BasicVector3D< float > & rotateZ (float a)
 
BasicVector3D< double > & rotateZ (double a)
 
BasicVector3D< double > & rotate (double a, const BasicVector3D< double > &v)
 
BasicVector3D< double > & rotate (double a, const BasicVector3D< double > &v)
 
BasicVector3D< float > & rotate (float a, const BasicVector3D< float > &v)
 
BasicVector3D< double > & rotate (double a, const BasicVector3D< double > &v)
 

Additional Inherited Members

- Public Types inherited from HepGeom::BasicVector3D< double >
enum  
 
enum  
 
- Protected Member Functions inherited from HepGeom::BasicVector3D< double >
 BasicVector3D ()
 
 BasicVector3D ()
 
- Protected Attributes inherited from HepGeom::BasicVector3D< double >
double v_ [3]
 

Detailed Description

Geometrical 3D Point with components of double type.

Author
Evgeni Chernyaev Evgue.nosp@m.ni.T.nosp@m.chern.nosp@m.iaev.nosp@m.@cern.nosp@m..ch

Definition at line 123 of file Geometry/Point3D.h.

Constructor & Destructor Documentation

◆ Point3D() [1/16]

HepGeom::Point3D< double >::Point3D ( )
inline

Default constructor.

Definition at line 127 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [2/16]

HepGeom::Point3D< double >::Point3D ( double x1,
double y1,
double z1 )
inline

Constructor from three numbers.

Definition at line 131 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [3/16]

HepGeom::Point3D< double >::Point3D ( const float * a)
inlineexplicit

Constructor from array of floats.

Definition at line 135 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [4/16]

HepGeom::Point3D< double >::Point3D ( const double * a)
inlineexplicit

Constructor from array of doubles.

Definition at line 140 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [5/16]

HepGeom::Point3D< double >::Point3D ( const Point3D< double > & v)
inline

Copy constructor.

Definition at line 145 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [6/16]

HepGeom::Point3D< double >::Point3D ( const BasicVector3D< float > & v)
inline

Constructor from BasicVector3D<float>.

Definition at line 149 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [7/16]

HepGeom::Point3D< double >::Point3D ( const BasicVector3D< double > & v)
inline

Constructor from BasicVector3D<double>.

Definition at line 153 of file CLHEP/Geometry/Point3D.h.

◆ ~Point3D() [1/2]

HepGeom::Point3D< double >::~Point3D ( )
inline

Destructor.

Definition at line 157 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [8/16]

HepGeom::Point3D< double >::Point3D ( const CLHEP::Hep3Vector & v)
inline

Constructor from CLHEP::Hep3Vector. This constructor is needed only for backward compatibility and in principle should be absent.

Definition at line 164 of file CLHEP/Geometry/Point3D.h.

◆ Point3D() [9/16]

HepGeom::Point3D< double >::Point3D ( )
inline

Default constructor.

Definition at line 127 of file Geometry/Point3D.h.

◆ Point3D() [10/16]

HepGeom::Point3D< double >::Point3D ( double x1,
double y1,
double z1 )
inline

Constructor from three numbers.

Definition at line 131 of file Geometry/Point3D.h.

◆ Point3D() [11/16]

HepGeom::Point3D< double >::Point3D ( const float * a)
inlineexplicit

Constructor from array of floats.

Definition at line 135 of file Geometry/Point3D.h.

◆ Point3D() [12/16]

HepGeom::Point3D< double >::Point3D ( const double * a)
inlineexplicit

Constructor from array of doubles.

Definition at line 140 of file Geometry/Point3D.h.

◆ Point3D() [13/16]

HepGeom::Point3D< double >::Point3D ( const Point3D< double > & v)
inline

Copy constructor.

Definition at line 145 of file Geometry/Point3D.h.

◆ Point3D() [14/16]

HepGeom::Point3D< double >::Point3D ( const BasicVector3D< float > & v)
inline

Constructor from BasicVector3D<float>.

Definition at line 149 of file Geometry/Point3D.h.

◆ Point3D() [15/16]

HepGeom::Point3D< double >::Point3D ( const BasicVector3D< double > & v)
inline

Constructor from BasicVector3D<double>.

Definition at line 153 of file Geometry/Point3D.h.

◆ ~Point3D() [2/2]

HepGeom::Point3D< double >::~Point3D ( )
inline

Destructor.

Definition at line 157 of file Geometry/Point3D.h.

◆ Point3D() [16/16]

HepGeom::Point3D< double >::Point3D ( const CLHEP::Hep3Vector & v)
inline

Constructor from CLHEP::Hep3Vector. This constructor is needed only for backward compatibility and in principle should be absent.

Definition at line 164 of file Geometry/Point3D.h.

Member Function Documentation

◆ distance() [1/4]

double HepGeom::Point3D< double >::distance ( ) const
inline

Returns distance to the origin.

Definition at line 205 of file CLHEP/Geometry/Point3D.h.

◆ distance() [2/4]

double HepGeom::Point3D< double >::distance ( ) const
inline

Returns distance to the origin.

Definition at line 205 of file Geometry/Point3D.h.

◆ distance() [3/4]

double HepGeom::Point3D< double >::distance ( const Point3D< double > & p) const
inline

Returns distance to the point.

Definition at line 209 of file CLHEP/Geometry/Point3D.h.

◆ distance() [4/4]

double HepGeom::Point3D< double >::distance ( const Point3D< double > & p) const
inline

Returns distance to the point.

Definition at line 209 of file Geometry/Point3D.h.

◆ distance2() [1/4]

double HepGeom::Point3D< double >::distance2 ( ) const
inline

Returns distance to the origin squared.

Definition at line 194 of file CLHEP/Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::mag2().

◆ distance2() [2/4]

double HepGeom::Point3D< double >::distance2 ( ) const
inline

Returns distance to the origin squared.

Definition at line 194 of file Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::mag2().

◆ distance2() [3/4]

double HepGeom::Point3D< double >::distance2 ( const Point3D< double > & p) const
inline

Returns distance to the point squared.

Definition at line 198 of file CLHEP/Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

◆ distance2() [4/4]

double HepGeom::Point3D< double >::distance2 ( const Point3D< double > & p) const
inline

Returns distance to the point squared.

Definition at line 198 of file Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

◆ operator CLHEP::Hep3Vector() [1/2]

HepGeom::Point3D< double >::operator CLHEP::Hep3Vector ( ) const
inline

Conversion (cast) to CLHEP::Hep3Vector. This operator is needed only for backward compatibility and in principle should not exit.

Definition at line 172 of file CLHEP/Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

◆ operator CLHEP::Hep3Vector() [2/2]

HepGeom::Point3D< double >::operator CLHEP::Hep3Vector ( ) const
inline

Conversion (cast) to CLHEP::Hep3Vector. This operator is needed only for backward compatibility and in principle should not exit.

Definition at line 172 of file Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

◆ operator=() [1/6]

◆ operator=() [2/6]

◆ operator=() [3/6]

◆ operator=() [4/6]

◆ operator=() [5/6]

Point3D< double > & HepGeom::Point3D< double >::operator= ( const Point3D< double > & v)
inline

Assignment.

Definition at line 176 of file CLHEP/Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::set().

◆ operator=() [6/6]

Point3D< double > & HepGeom::Point3D< double >::operator= ( const Point3D< double > & v)
inline

Assignment.

Definition at line 176 of file Geometry/Point3D.h.

References HepGeom::BasicVector3D< T >::set().

◆ transform() [1/2]

Point3D< double > & HepGeom::Point3D< double >::transform ( const Transform3D & m)

Transformation by Transform3D.

Definition at line 32 of file Point3D.cc.

◆ transform() [2/2]

Point3D< double > & HepGeom::Point3D< double >::transform ( const Transform3D & m)

Transformation by Transform3D.


The documentation for this class was generated from the following files: