CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
HepGeom::Point3D< double > Class Reference

#include <CLHEP/Geometry/Point3D.h>

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

Public Member Functions

 Point3D ()=default
 Point3D (double x1, double y1, double z1)
 Point3D (const float *a)
 Point3D (const double *a)
 Point3D (const Point3D< double > &)=default
 Point3D (Point3D< double > &&)=default
 Point3D (const BasicVector3D< float > &v)
 Point3D (const BasicVector3D< double > &v)
 ~Point3D ()=default
 Point3D (const CLHEP::Hep3Vector &v)
 operator CLHEP::Hep3Vector () const
Point3D< double > & operator= (const Point3D< double > &)=default
Point3D< double > & operator= (const BasicVector3D< float > &v)
Point3D< double > & operator= (const BasicVector3D< double > &v)
Point3D< double > & operator= (Point3D< double > &&)=default
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 >
virtual ~BasicVector3D ()=default
 operator double * ()
 operator const double * () const
 operator CLHEP::Hep3Vector () const
BasicVector3D< double > & operator= (const BasicVector3D< double > &)=default
BasicVector3D< double > & operator+= (const BasicVector3D< double > &v)
BasicVector3D< double > & operator-= (const BasicVector3D< double > &v)
BasicVector3D< double > & operator*= (double a)
BasicVector3D< double > & operator/= (double a)
double operator() (int i) const
double operator[] (int i) const
double x () const
double y () const
double z () const
void setX (double a)
void setY (double a)
void setZ (double a)
void set (double x1, double y1, double z1)
double perp2 () const
double perp () const
double rho () const
void setPerp (double rh)
double mag2 () const
double mag () const
double r () const
double phi () const
double theta () const
double cosTheta () const
double getR () const
double getPhi () const
double getTheta () const
void setMag (double ma)
void setR (double ma)
void setPhi (double ph)
void setTheta (double th)
double pseudoRapidity () const
double eta () const
double getEta () const
void setEta (double a)
double dot (const BasicVector3D< double > &v) const
BasicVector3D< double > cross (const BasicVector3D< double > &v) const
double angle (const BasicVector3D< double > &v) const
BasicVector3D< double > unit () const
BasicVector3D< double > orthogonal () const
BasicVector3D< double > & rotateX (double a)
BasicVector3D< double > & rotateY (double a)
BasicVector3D< double > & rotateZ (double a)
BasicVector3D< double > & rotate (double a, const BasicVector3D< double > &v)

(Note that these are not member symbols.)

Point3D< float > operator* (const Transform3D &m, const Point3D< float > &p)
Point3D< double > operator* (const Transform3D &m, const Point3D< double > &p)

Additional Inherited Members

Public Types inherited from HepGeom::BasicVector3D< double >
enum  
Protected Member Functions inherited from HepGeom::BasicVector3D< double >
 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 130 of file Point3D.h.

Constructor & Destructor Documentation

◆ Point3D() [1/9]

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

◆ Point3D() [2/9]

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

Constructor from three numbers.

Definition at line 138 of file Point3D.h.

References HepGeom::BasicVector3D< double >::BasicVector3D().

◆ Point3D() [3/9]

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

Constructor from array of floats.

Definition at line 142 of file Point3D.h.

References HepGeom::BasicVector3D< double >::BasicVector3D().

◆ Point3D() [4/9]

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

Constructor from array of doubles.

Definition at line 147 of file Point3D.h.

References HepGeom::BasicVector3D< double >::BasicVector3D().

◆ Point3D() [5/9]

HepGeom::Point3D< double >::Point3D ( const Point3D< double > & )
default

Copy constructor.

References Point3D().

◆ Point3D() [6/9]

HepGeom::Point3D< double >::Point3D ( Point3D< double > && )
default

Move constructor.

References Point3D().

◆ Point3D() [7/9]

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

Constructor from BasicVector3D<float>.

Definition at line 160 of file Point3D.h.

References HepGeom::BasicVector3D< double >::BasicVector3D().

◆ Point3D() [8/9]

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

Constructor from BasicVector3D<double>.

Definition at line 164 of file Point3D.h.

References HepGeom::BasicVector3D< double >::BasicVector3D().

◆ ~Point3D()

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

Destructor.

◆ Point3D() [9/9]

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 175 of file Point3D.h.

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

Member Function Documentation

◆ distance() [1/2]

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

Returns distance to the origin.

Definition at line 220 of file Point3D.h.

References distance2().

◆ distance() [2/2]

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

Returns distance to the point.

Definition at line 224 of file Point3D.h.

References distance2(), and Point3D().

◆ distance2() [1/2]

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

Returns distance to the origin squared.

Definition at line 209 of file Point3D.h.

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

Referenced by distance(), and distance().

◆ distance2() [2/2]

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

Returns distance to the point squared.

Definition at line 213 of file Point3D.h.

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

◆ operator CLHEP::Hep3Vector()

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 183 of file Point3D.h.

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

◆ operator=() [1/4]

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

◆ operator=() [2/4]

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

◆ operator=() [3/4]

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

Assignment.

References Point3D().

◆ operator=() [4/4]

Point3D< double > & HepGeom::Point3D< double >::operator= ( Point3D< double > && )
default

Move assignment.

References Point3D().

◆ transform()

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

Transformation by Transform3D.

References Point3D().

◆ operator*() [1/2]

Point3D< double > operator* ( const Transform3D & m,
const Point3D< double > & p )
related

Transformation of Point3D<double> by Transform3D.

References Point3D().

◆ operator*() [2/2]

Point3D< float > operator* ( const Transform3D & m,
const Point3D< float > & p )
related

Transformation of Point3D<float> by Transform3D.

References Point3D().


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