Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HepGeom::Normal3D< float > Class Reference

#include <Normal3D.h>

+ Inheritance diagram for HepGeom::Normal3D< float >:

Public Member Functions

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

Detailed Description

Geometrical 3D Normal with components of float type.

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

Definition at line 43 of file Normal3D.h.

Constructor & Destructor Documentation

◆ Normal3D() [1/5]

HepGeom::Normal3D< float >::Normal3D ( )
inline

Default constructor.

Definition at line 47 of file Normal3D.h.

47{}

◆ Normal3D() [2/5]

HepGeom::Normal3D< float >::Normal3D ( float  x1,
float  y1,
float  z1 
)
inline

Constructor from three numbers.

Definition at line 51 of file Normal3D.h.

51: BasicVector3D<float>(x1,y1,z1) {}

◆ Normal3D() [3/5]

HepGeom::Normal3D< float >::Normal3D ( const float *  a)
inlineexplicit

Constructor from array of floats.

Definition at line 55 of file Normal3D.h.

56 : BasicVector3D<float>(a[0],a[1],a[2]) {}

◆ Normal3D() [4/5]

HepGeom::Normal3D< float >::Normal3D ( const Normal3D< float > &  v)
inline

Copy constructor.

Definition at line 60 of file Normal3D.h.

60: BasicVector3D<float>(v) {}

◆ Normal3D() [5/5]

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

Constructor from BasicVector3D<float>.

Definition at line 64 of file Normal3D.h.

64: BasicVector3D<float>(v) {}

◆ ~Normal3D()

HepGeom::Normal3D< float >::~Normal3D ( )
inline

Destructor.

Definition at line 68 of file Normal3D.h.

68{}

Member Function Documentation

◆ operator=() [1/2]

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

Assignment from BasicVector3D<float>.

Definition at line 78 of file Normal3D.h.

78 {
79 set(v.x(),v.y(),v.z()); return *this;
80 }
void set(float x1, float y1, float z1)

◆ operator=() [2/2]

Normal3D< float > & HepGeom::Normal3D< float >::operator= ( const Normal3D< float > &  v)
inline

Assignment.

Definition at line 72 of file Normal3D.h.

72 {
73 set(v.x(),v.y(),v.z()); return *this;
74 }

◆ transform()

Normal3D< float > & HepGeom::Normal3D< float >::transform ( const Transform3D m)

Transformation by Transform3D.

Definition at line 11 of file Normal3D.cc.

11 {
12 double vx = x(), vy = y(), vz = z();
13 double xx = m.xx(), xy = m.xy(), xz = m.xz();
14 double yx = m.yx(), yy = m.yy(), yz = m.yz();
15 double zx = m.zx(), zy = m.zy(), zz = m.zz();
16 set((yy*zz-yz*zy)*vx+(yz*zx-yx*zz)*vy+(yx*zy-yy*zx)*vz,
17 (zy*xz-zz*xy)*vx+(zz*xx-zx*xz)*vy+(zx*xy-zy*xx)*vz,
18 (xy*yz-xz*yy)*vx+(xz*yx-xx*yz)*vy+(xx*yy-xy*yx)*vz);
19 return *this;
20 }

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