Geant4_10
|
#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 |
Definition at line 53 of file G4INCLThreeVector.hh.
|
inline |
Definition at line 59 of file G4INCLThreeVector.hh.
|
inline |
Dot product.
Definition at line 96 of file G4INCLThreeVector.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the length of the vector.
Definition at line 72 of file G4INCLThreeVector.hh.
|
inline |
Get the square of the length.
Definition at line 77 of file G4INCLThreeVector.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 120 of file G4INCLThreeVector.hh.
|
inline |
Unary minus operator.
Definition at line 127 of file G4INCLThreeVector.hh.
|
inline |
|
inline |
Definition at line 131 of file G4INCLThreeVector.hh.
|
inline |
Divides all components of the vector with a constant number.
Definition at line 161 of file G4INCLThreeVector.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Phi angle
Definition at line 89 of file G4INCLThreeVector.hh.
|
inline |
|
inline |
Rotate the vector by a given angle around a given axis.
angle | the rotation angle |
axis | the rotation axis, which must be a unit vector |
Definition at line 175 of file G4INCLThreeVector.hh.
Set the x coordinate.
Definition at line 112 of file G4INCLThreeVector.hh.
Set the y coordinate.
Definition at line 115 of file G4INCLThreeVector.hh.
Set the z coordinate.
Definition at line 118 of file G4INCLThreeVector.hh.
|
inline |
Theta angle
Definition at line 82 of file G4INCLThreeVector.hh.
|
inline |
Vector product.
Definition at line 103 of file G4INCLThreeVector.hh.