Geant4_10
Public Member Functions | List of all members
G4INCL::ThreeVector Class Reference

#include <G4INCLThreeVector.hh>

Public Member Functions

 ThreeVector ()
 
 ThreeVector (G4double ax, G4double ay, G4double az)
 
G4double getX () const
 
G4double getY () const
 
G4double getZ () const
 
G4double perp () const
 
G4double perp2 () const
 
G4double mag () const
 
G4double mag2 () const
 
G4double theta () const
 
G4double phi () const
 
G4double dot (const ThreeVector &v) const
 
ThreeVector vector (const ThreeVector &v) const
 
void setX (G4double ax)
 Set the x coordinate. More...
 
void setY (G4double ay)
 Set the y coordinate. More...
 
void setZ (G4double az)
 Set the z coordinate. More...
 
void operator+= (const ThreeVector &v)
 
ThreeVector operator- () const
 Unary minus operator. More...
 
void operator-= (const ThreeVector &v)
 
template<typename T >
void operator*= (const T &c)
 
template<typename T >
void operator/= (const T &c)
 
ThreeVector operator- (const ThreeVector &v) const
 
ThreeVector operator+ (const ThreeVector &v) const
 
ThreeVector operator/ (const G4double C) const
 
ThreeVector operator* (const G4double C) const
 
void rotate (const G4double angle, const ThreeVector &axis)
 Rotate the vector by a given angle around a given axis. More...
 
std::string print () const
 
std::string dump () const
 

Detailed Description

Definition at line 53 of file G4INCLThreeVector.hh.

Constructor & Destructor Documentation

G4INCL::ThreeVector::ThreeVector ( )
inline

Definition at line 55 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4INCL::ThreeVector::ThreeVector ( G4double  ax,
G4double  ay,
G4double  az 
)
inline

Definition at line 59 of file G4INCLThreeVector.hh.

Member Function Documentation

G4double G4INCL::ThreeVector::dot ( const ThreeVector v) const
inline

Dot product.

Definition at line 96 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

std::string G4INCL::ThreeVector::dump ( ) const
inline

Definition at line 188 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::getX ( ) const
inline

Definition at line 63 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::getY ( ) const
inline

Definition at line 64 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::getZ ( ) const
inline

Definition at line 65 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::mag ( ) const
inline

Get the length of the vector.

Definition at line 72 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::mag2 ( ) const
inline

Get the square of the length.

Definition at line 77 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

ThreeVector G4INCL::ThreeVector::operator* ( const G4double  C) const
inline

Definition at line 166 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

template<typename T >
void G4INCL::ThreeVector::operator*= ( const T &  c)
inline

Definition at line 138 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

ThreeVector G4INCL::ThreeVector::operator+ ( const ThreeVector v) const
inline

Definition at line 154 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

void G4INCL::ThreeVector::operator+= ( const ThreeVector v)
inline

Definition at line 120 of file G4INCLThreeVector.hh.

ThreeVector G4INCL::ThreeVector::operator- ( ) const
inline

Unary minus operator.

Definition at line 127 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

ThreeVector G4INCL::ThreeVector::operator- ( const ThreeVector v) const
inline

Definition at line 150 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

void G4INCL::ThreeVector::operator-= ( const ThreeVector v)
inline

Definition at line 131 of file G4INCLThreeVector.hh.

ThreeVector G4INCL::ThreeVector::operator/ ( const G4double  C) const
inline

Divides all components of the vector with a constant number.

Definition at line 161 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

template<typename T >
void G4INCL::ThreeVector::operator/= ( const T &  c)
inline

Definition at line 145 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

G4double G4INCL::ThreeVector::perp ( ) const
inline

Definition at line 67 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::perp2 ( ) const
inline

Definition at line 68 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::phi ( ) const
inline

Phi angle

Definition at line 89 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

std::string G4INCL::ThreeVector::print ( ) const
inline

Definition at line 182 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

void G4INCL::ThreeVector::rotate ( const G4double  angle,
const ThreeVector axis 
)
inline

Rotate the vector by a given angle around a given axis.

Parameters
anglethe rotation angle
axisthe rotation axis, which must be a unit vector

Definition at line 175 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4INCL::ThreeVector::setX ( G4double  ax)
inline

Set the x coordinate.

Definition at line 112 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

void G4INCL::ThreeVector::setY ( G4double  ay)
inline

Set the y coordinate.

Definition at line 115 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

void G4INCL::ThreeVector::setZ ( G4double  az)
inline

Set the z coordinate.

Definition at line 118 of file G4INCLThreeVector.hh.

Here is the caller graph for this function:

G4double G4INCL::ThreeVector::theta ( ) const
inline

Theta angle

Definition at line 82 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

Here is the caller graph for this function:

ThreeVector G4INCL::ThreeVector::vector ( const ThreeVector v) const
inline

Vector product.

Definition at line 103 of file G4INCLThreeVector.hh.

Here is the call graph for this function:

Here is the caller graph for this function:


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