CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <BasicVector3D.h>
Public Types | |
enum | { X = 0 , Y = 1 , Z = 2 , NUM_COORDINATES = 3 , SIZE = NUM_COORDINATES } |
enum | { X = 0 , Y = 1 , Z = 2 , NUM_COORDINATES = 3 , SIZE = NUM_COORDINATES } |
Public Member Functions | |
BasicVector3D (T x1, T y1, T z1) | |
BasicVector3D (const BasicVector3D< float > &v) | |
virtual | ~BasicVector3D () |
operator T* () | |
operator const T * () const | |
operator CLHEP::Hep3Vector () const | |
BasicVector3D< T > & | operator= (const BasicVector3D< T > &v) |
BasicVector3D< T > & | operator+= (const BasicVector3D< T > &v) |
BasicVector3D< T > & | operator-= (const BasicVector3D< T > &v) |
BasicVector3D< T > & | operator*= (double a) |
BasicVector3D< T > & | operator/= (double a) |
T | operator() (int i) const |
T | operator[] (int i) const |
T & | operator() (int i) |
T & | operator[] (int i) |
T | x () const |
T | y () const |
T | z () const |
void | setX (T a) |
void | setY (T a) |
void | setZ (T a) |
void | set (T x1, T y1, T z1) |
T | perp2 () const |
T | perp () const |
T | rho () const |
void | setPerp (T rh) |
T | mag2 () const |
T | mag () const |
T | r () const |
T | phi () const |
T | theta () const |
T | cosTheta () const |
T | getR () const |
T | getPhi () const |
T | getTheta () const |
void | setMag (T ma) |
void | setR (T ma) |
void | setPhi (T ph) |
void | setTheta (T th) |
T | pseudoRapidity () const |
T | eta () const |
T | getEta () const |
void | setEta (T a) |
T | dot (const BasicVector3D< T > &v) const |
BasicVector3D< T > | cross (const BasicVector3D< T > &v) const |
T | perp2 (const BasicVector3D< T > &v) const |
T | perp (const BasicVector3D< T > &v) const |
T | angle (const BasicVector3D< T > &v) const |
BasicVector3D< T > | unit () const |
BasicVector3D< T > | orthogonal () const |
BasicVector3D< T > & | rotateX (T a) |
BasicVector3D< T > & | rotateY (T a) |
BasicVector3D< T > & | rotateZ (T a) |
BasicVector3D< T > & | rotate (T a, const BasicVector3D< T > &v) |
BasicVector3D (T x1, T y1, T z1) | |
BasicVector3D (const BasicVector3D< float > &v) | |
virtual | ~BasicVector3D () |
operator T* () | |
operator const T * () const | |
operator CLHEP::Hep3Vector () const | |
BasicVector3D< T > & | operator= (const BasicVector3D< T > &v) |
BasicVector3D< T > & | operator+= (const BasicVector3D< T > &v) |
BasicVector3D< T > & | operator-= (const BasicVector3D< T > &v) |
BasicVector3D< T > & | operator*= (double a) |
BasicVector3D< T > & | operator/= (double a) |
T | operator() (int i) const |
T | operator[] (int i) const |
T & | operator() (int i) |
T & | operator[] (int i) |
T | x () const |
T | y () const |
T | z () const |
void | setX (T a) |
void | setY (T a) |
void | setZ (T a) |
void | set (T x1, T y1, T z1) |
T | perp2 () const |
T | perp () const |
T | rho () const |
void | setPerp (T rh) |
T | mag2 () const |
T | mag () const |
T | r () const |
T | phi () const |
T | theta () const |
T | cosTheta () const |
T | getR () const |
T | getPhi () const |
T | getTheta () const |
void | setMag (T ma) |
void | setR (T ma) |
void | setPhi (T ph) |
void | setTheta (T th) |
T | pseudoRapidity () const |
T | eta () const |
T | getEta () const |
void | setEta (T a) |
T | dot (const BasicVector3D< T > &v) const |
BasicVector3D< T > | cross (const BasicVector3D< T > &v) const |
T | perp2 (const BasicVector3D< T > &v) const |
T | perp (const BasicVector3D< T > &v) const |
T | angle (const BasicVector3D< T > &v) const |
BasicVector3D< T > | unit () const |
BasicVector3D< T > | orthogonal () const |
BasicVector3D< T > & | rotateX (T a) |
BasicVector3D< T > & | rotateY (T a) |
BasicVector3D< T > & | rotateZ (T a) |
BasicVector3D< T > & | rotate (T a, const BasicVector3D< T > &v) |
float | pseudoRapidity () const |
void | setEta (float a) |
float | angle (const BasicVector3D< float > &v) const |
BasicVector3D< float > & | rotateX (float a) |
BasicVector3D< float > & | rotateY (float a) |
BasicVector3D< float > & | rotateZ (float a) |
BasicVector3D< float > & | rotate (float a, const BasicVector3D< float > &v) |
double | pseudoRapidity () const |
void | setEta (double a) |
double | angle (const BasicVector3D< double > &v) 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) |
Protected Member Functions | |
BasicVector3D () | |
BasicVector3D () | |
Protected Attributes | |
T | v_ [3] |
Base class for Point3D<T>, Vector3D<T> and Normal3D<T>. It defines only common functionality for those classes and should not be used as separate class.
Definition at line 28 of file CLHEP/Geometry/BasicVector3D.h.
anonymous enum |
Safe indexing of the coordinates when using with matrices, arrays, etc.
Enumerator | |
---|---|
X | index for x-component |
Y | index for y-component |
Z | index for z-component |
NUM_COORDINATES | number of components |
SIZE | number of components |
Definition at line 42 of file Geometry/BasicVector3D.h.
anonymous enum |
Safe indexing of the coordinates when using with matrices, arrays, etc.
Enumerator | |
---|---|
X | index for x-component |
Y | index for y-component |
Z | index for z-component |
NUM_COORDINATES | number of components |
SIZE | number of components |
Definition at line 42 of file CLHEP/Geometry/BasicVector3D.h.
|
inlineprotected |
Default constructor. It is protected - this class should not be instantiated directly.
Definition at line 36 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Constructor from three numbers.
Definition at line 52 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Copy constructor. Note: BasicVector3D<double> has constructors from BasicVector3D<double> (provided by compiler) and from BasicVector3D<float> (defined in this file); BasicVector3D<float> has only the last one.
Definition at line 61 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inlinevirtual |
Destructor.
Definition at line 67 of file CLHEP/Geometry/BasicVector3D.h.
|
inlineprotected |
Default constructor. It is protected - this class should not be instantiated directly.
Definition at line 36 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Constructor from three numbers.
Definition at line 52 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Copy constructor. Note: BasicVector3D<double> has constructors from BasicVector3D<double> (provided by compiler) and from BasicVector3D<float> (defined in this file); BasicVector3D<float> has only the last one.
Definition at line 61 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inlinevirtual |
Destructor.
Definition at line 67 of file Geometry/BasicVector3D.h.
double HepGeom::BasicVector3D< double >::angle | ( | const BasicVector3D< double > & | v | ) | const |
Definition at line 193 of file BasicVector3D.cc.
References Genfun::dot(), and HepGeom::BasicVector3D< T >::mag().
float HepGeom::BasicVector3D< float >::angle | ( | const BasicVector3D< float > & | v | ) | const |
Definition at line 37 of file BasicVector3D.cc.
References Genfun::dot(), and HepGeom::BasicVector3D< T >::mag().
T HepGeom::BasicVector3D< T >::angle | ( | const BasicVector3D< T > & | v | ) | const |
Returns angle w.r.t. another vector.
T HepGeom::BasicVector3D< T >::angle | ( | const BasicVector3D< T > & | v | ) | const |
Returns angle w.r.t. another vector.
|
inline |
Gets cosine of polar angle.
Definition at line 212 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Gets cosine of polar angle.
Definition at line 212 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Vector product.
Definition at line 276 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
Referenced by HepGeom::Transform3D::Transform3D().
|
inline |
Vector product.
Definition at line 276 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Scalar product.
Definition at line 270 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Scalar product.
Definition at line 270 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Gets pseudo-rapidity.
Definition at line 255 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::pseudoRapidity().
|
inline |
Gets pseudo-rapidity.
Definition at line 255 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::pseudoRapidity().
|
inline |
Gets pseudo-rapidity.
Definition at line 258 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::pseudoRapidity().
|
inline |
Gets pseudo-rapidity.
Definition at line 258 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::pseudoRapidity().
|
inline |
Gets phi-component in spherical coordinate system
Definition at line 219 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::phi().
|
inline |
Gets phi-component in spherical coordinate system
Definition at line 219 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::phi().
|
inline |
Gets r-component in spherical coordinate system
Definition at line 216 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::r().
|
inline |
Gets r-component in spherical coordinate system
Definition at line 216 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::r().
|
inline |
Gets theta-component in spherical coordinate system
Definition at line 222 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::theta().
|
inline |
Gets theta-component in spherical coordinate system
Definition at line 222 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::theta().
|
inline |
Gets magnitude of the vector.
Definition at line 196 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag2().
Referenced by HepGeom::BasicVector3D< T >::angle(), HepGeom::BasicVector3D< T >::cosTheta(), HepGeom::BasicVector3D< T >::r(), HepGeom::BasicVector3D< T >::setMag(), HepGeom::BasicVector3D< T >::setTheta(), and HepGeom::BasicVector3D< T >::unit().
|
inline |
Gets magnitude of the vector.
Definition at line 196 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag2().
|
inline |
Gets magnitude squared of the vector.
Definition at line 193 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
Referenced by HepGeom::Point3D< float >::distance2(), HepGeom::Point3D< double >::distance2(), HepGeom::BasicVector3D< T >::mag(), and HepGeom::BasicVector3D< T >::perp2().
|
inline |
Gets magnitude squared of the vector.
Definition at line 193 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Conversion (cast) to CLHEP::Hep3Vector. This operator is needed only for backward compatibility and in principle should not exit.
Definition at line 86 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Conversion (cast) to CLHEP::Hep3Vector. This operator is needed only for backward compatibility and in principle should not exit.
Definition at line 86 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Conversion (cast) to ordinary const array.
Definition at line 79 of file CLHEP/Geometry/BasicVector3D.h.
|
inline |
Conversion (cast) to ordinary const array.
Definition at line 79 of file Geometry/BasicVector3D.h.
|
inline |
Conversion (cast) to ordinary array.
Definition at line 75 of file CLHEP/Geometry/BasicVector3D.h.
|
inline |
Conversion (cast) to ordinary array.
Definition at line 75 of file Geometry/BasicVector3D.h.
|
inline |
Sets components by index.
Definition at line 131 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets components by index.
Definition at line 131 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Gets components by index.
Definition at line 124 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Gets components by index.
Definition at line 124 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Multiplication by scalar.
Definition at line 109 of file CLHEP/Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Multiplication by scalar.
Definition at line 109 of file Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Addition.
Definition at line 99 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Addition.
Definition at line 99 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Subtraction.
Definition at line 104 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Subtraction.
Definition at line 104 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Division by scalar.
Definition at line 114 of file CLHEP/Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Division by scalar.
Definition at line 114 of file Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Assignment.
Definition at line 94 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Assignment.
Definition at line 94 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets components by index.
Definition at line 134 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets components by index.
Definition at line 134 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Gets components by index.
Definition at line 127 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Gets components by index.
Definition at line 127 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Returns orthogonal vector.
Definition at line 313 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Returns orthogonal vector.
Definition at line 313 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Gets transverse component.
Definition at line 173 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp2().
Referenced by HepGeom::BasicVector3D< T >::rho(), HepGeom::BasicVector3D< T >::setPerp(), HepGeom::BasicVector3D< T >::setPhi(), and HepGeom::BasicVector3D< T >::theta().
|
inline |
Gets transverse component.
Definition at line 173 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp2().
|
inline |
Returns transverse component w.r.t. given axis.
Definition at line 291 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp2().
|
inline |
Returns transverse component w.r.t. given axis.
Definition at line 291 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp2().
|
inline |
Gets transverse component squared.
Definition at line 170 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), and HepGeom::BasicVector3D< T >::y().
Referenced by HepGeom::BasicVector3D< T >::perp().
|
inline |
Gets transverse component squared.
Definition at line 170 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), and HepGeom::BasicVector3D< T >::y().
|
inline |
Returns transverse component w.r.t. given axis squared.
Definition at line 284 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag2().
|
inline |
Returns transverse component w.r.t. given axis squared.
Definition at line 284 of file Geometry/BasicVector3D.h.
|
inline |
Gets azimuth angle.
Definition at line 202 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), and HepGeom::BasicVector3D< T >::y().
Referenced by HepGeom::BasicVector3D< T >::getPhi(), main(), and HepGeom::BasicVector3D< T >::setTheta().
|
inline |
Gets azimuth angle.
Definition at line 202 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), and HepGeom::BasicVector3D< T >::y().
T HepGeom::BasicVector3D< T >::pseudoRapidity | ( | ) | const |
Gets pseudo-rapidity: -ln(std::tan(theta/2))
Referenced by HepGeom::BasicVector3D< T >::eta(), and HepGeom::BasicVector3D< T >::getEta().
T HepGeom::BasicVector3D< T >::pseudoRapidity | ( | ) | const |
Gets pseudo-rapidity: -ln(std::tan(theta/2))
float HepGeom::BasicVector3D< float >::pseudoRapidity | ( | ) | const |
Definition at line 14 of file BasicVector3D.cc.
double HepGeom::BasicVector3D< double >::pseudoRapidity | ( | ) | const |
Definition at line 170 of file BasicVector3D.cc.
|
inline |
Gets r-component in spherical coordinate system
Definition at line 199 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag().
Referenced by HepGeom::BasicVector3D< T >::getR().
|
inline |
Gets r-component in spherical coordinate system
Definition at line 199 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag().
|
inline |
Gets rho-component in cylindrical coordinate system
Definition at line 176 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp().
|
inline |
Gets rho-component in cylindrical coordinate system
Definition at line 176 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp().
BasicVector3D< double > & HepGeom::BasicVector3D< double >::rotate | ( | double | a, |
const BasicVector3D< double > & | v | ||
) |
Definition at line 234 of file BasicVector3D.cc.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
BasicVector3D< float > & HepGeom::BasicVector3D< float >::rotate | ( | float | a, |
const BasicVector3D< float > & | v | ||
) |
Definition at line 78 of file BasicVector3D.cc.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotate | ( | T | a, |
const BasicVector3D< T > & | v | ||
) |
Rotates around the axis specified by another vector.
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotate | ( | T | a, |
const BasicVector3D< T > & | v | ||
) |
Rotates around the axis specified by another vector.
BasicVector3D< double > & HepGeom::BasicVector3D< double >::rotateX | ( | double | a | ) |
Definition at line 206 of file BasicVector3D.cc.
References a.
BasicVector3D< float > & HepGeom::BasicVector3D< float >::rotateX | ( | float | a | ) |
Definition at line 50 of file BasicVector3D.cc.
References a.
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotateX | ( | T | a | ) |
Rotates around x-axis.
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotateX | ( | T | a | ) |
Rotates around x-axis.
BasicVector3D< double > & HepGeom::BasicVector3D< double >::rotateY | ( | double | a | ) |
Definition at line 215 of file BasicVector3D.cc.
References a.
BasicVector3D< float > & HepGeom::BasicVector3D< float >::rotateY | ( | float | a | ) |
Definition at line 59 of file BasicVector3D.cc.
References a.
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotateY | ( | T | a | ) |
Rotates around y-axis.
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotateY | ( | T | a | ) |
Rotates around y-axis.
BasicVector3D< double > & HepGeom::BasicVector3D< double >::rotateZ | ( | double | a | ) |
Definition at line 224 of file BasicVector3D.cc.
References a.
BasicVector3D< float > & HepGeom::BasicVector3D< float >::rotateZ | ( | float | a | ) |
Definition at line 68 of file BasicVector3D.cc.
References a.
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotateZ | ( | T | a | ) |
Rotates around z-axis.
BasicVector3D<T>& HepGeom::BasicVector3D< T >::rotateZ | ( | T | a | ) |
Rotates around z-axis.
|
inline |
Sets components in cartesian coordinate system.
Definition at line 162 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
Referenced by HepGeom::Normal3D< double >::operator=(), HepGeom::Normal3D< float >::operator=(), HepGeom::Point3D< double >::operator=(), HepGeom::Point3D< float >::operator=(), HepGeom::Vector3D< double >::operator=(), HepGeom::Vector3D< float >::operator=(), and HepGeom::BasicVector3D< T >::setTheta().
|
inline |
Sets components in cartesian coordinate system.
Definition at line 162 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
void HepGeom::BasicVector3D< double >::setEta | ( | double | a | ) |
Definition at line 180 of file BasicVector3D.cc.
References a.
void HepGeom::BasicVector3D< float >::setEta | ( | float | a | ) |
Definition at line 24 of file BasicVector3D.cc.
References a.
void HepGeom::BasicVector3D< T >::setEta | ( | T | a | ) |
Sets pseudo-rapidity, keeping magnitude and phi fixed.
void HepGeom::BasicVector3D< T >::setEta | ( | T | a | ) |
Sets pseudo-rapidity, keeping magnitude and phi fixed.
|
inline |
Sets magnitude.
Definition at line 226 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), and HepGeom::BasicVector3D< T >::v_.
Referenced by HepGeom::BasicVector3D< T >::setR().
|
inline |
Sets magnitude.
Definition at line 226 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), and HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets transverse component keeping phi and z constant.
Definition at line 180 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp(), and HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets transverse component keeping phi and z constant.
Definition at line 180 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp(), and HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets phi-component in spherical coordinate system.
Definition at line 237 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp(), HepGeom::BasicVector3D< T >::setX(), and HepGeom::BasicVector3D< T >::setY().
|
inline |
Sets phi-component in spherical coordinate system.
Definition at line 237 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp(), HepGeom::BasicVector3D< T >::setX(), and HepGeom::BasicVector3D< T >::setY().
|
inline |
Sets r-component in spherical coordinate system.
Definition at line 234 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::setMag().
|
inline |
Sets r-component in spherical coordinate system.
Definition at line 234 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::setMag().
|
inline |
Sets theta-component in spherical coordinate system.
Definition at line 240 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), HepGeom::BasicVector3D< T >::phi(), and HepGeom::BasicVector3D< T >::set().
|
inline |
Sets theta-component in spherical coordinate system.
Definition at line 240 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), HepGeom::BasicVector3D< T >::phi(), and HepGeom::BasicVector3D< T >::set().
|
inline |
Sets x-component in cartesian coordinate system.
Definition at line 152 of file CLHEP/Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
Referenced by HepGeom::BasicVector3D< T >::setPhi().
|
inline |
Sets x-component in cartesian coordinate system.
Definition at line 152 of file Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets y-component in cartesian coordinate system.
Definition at line 155 of file CLHEP/Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
Referenced by HepGeom::BasicVector3D< T >::setPhi().
|
inline |
Sets y-component in cartesian coordinate system.
Definition at line 155 of file Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets z-component in cartesian coordinate system.
Definition at line 158 of file CLHEP/Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Sets z-component in cartesian coordinate system.
Definition at line 158 of file Geometry/BasicVector3D.h.
References a, and HepGeom::BasicVector3D< T >::v_.
|
inline |
Gets polar angle.
Definition at line 207 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
Referenced by HepGeom::BasicVector3D< T >::getTheta(), and main().
|
inline |
Gets polar angle.
Definition at line 207 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::perp(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Returns unit vector parallel to this.
Definition at line 305 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
Referenced by main().
|
inline |
Returns unit vector parallel to this.
Definition at line 305 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::mag(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Gets x-component in cartesian coordinate system.
Definition at line 142 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
Referenced by HepGeom::BasicVector3D< T >::BasicVector3D(), HepGeom::BasicVector3D< T >::cross(), HepGeom::Plane3D< T >::distance(), HepGeom::Point3D< double >::distance2(), HepGeom::Point3D< float >::distance2(), HepGeom::BasicVector3D< T >::dot(), HepGeom::BasicVector3D< T >::mag2(), main(), HepGeom::BasicVector3D< T >::operator CLHEP::Hep3Vector(), HepGeom::Normal3D< double >::operator CLHEP::Hep3Vector(), HepGeom::Point3D< double >::operator CLHEP::Hep3Vector(), HepGeom::Vector3D< double >::operator CLHEP::Hep3Vector(), HepGeom::BasicVector3D< T >::operator*(), HepGeom::BasicVector3D< T >::operator-(), HepGeom::BasicVector3D< T >::operator/(), HepGeom::Normal3D< double >::operator=(), HepGeom::Normal3D< float >::operator=(), HepGeom::Point3D< double >::operator=(), HepGeom::Point3D< float >::operator=(), HepGeom::Vector3D< double >::operator=(), HepGeom::Vector3D< float >::operator=(), HepGeom::BasicVector3D< T >::orthogonal(), HepGeom::BasicVector3D< T >::perp2(), HepGeom::BasicVector3D< T >::phi(), HepGeom::Plane3D< T >::point(), HepGeom::BasicVector3D< T >::rotate(), HepGeom::Rotate3D::Rotate3D(), HepGeom::BasicVector3D< T >::theta(), HepGeom::Transform3D::Transform3D(), and HepGeom::BasicVector3D< T >::unit().
|
inline |
Gets x-component in cartesian coordinate system.
Definition at line 142 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Gets y-component in cartesian coordinate system.
Definition at line 145 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
Referenced by HepGeom::BasicVector3D< T >::BasicVector3D(), HepGeom::BasicVector3D< T >::cross(), HepGeom::Plane3D< T >::distance(), HepGeom::Point3D< double >::distance2(), HepGeom::Point3D< float >::distance2(), HepGeom::BasicVector3D< T >::dot(), HepGeom::BasicVector3D< T >::mag2(), main(), HepGeom::BasicVector3D< T >::operator CLHEP::Hep3Vector(), HepGeom::Normal3D< double >::operator CLHEP::Hep3Vector(), HepGeom::Point3D< double >::operator CLHEP::Hep3Vector(), HepGeom::Vector3D< double >::operator CLHEP::Hep3Vector(), HepGeom::BasicVector3D< T >::operator*(), HepGeom::BasicVector3D< T >::operator-(), HepGeom::BasicVector3D< T >::operator/(), HepGeom::Normal3D< double >::operator=(), HepGeom::Normal3D< float >::operator=(), HepGeom::Point3D< double >::operator=(), HepGeom::Point3D< float >::operator=(), HepGeom::Vector3D< double >::operator=(), HepGeom::Vector3D< float >::operator=(), HepGeom::BasicVector3D< T >::orthogonal(), HepGeom::BasicVector3D< T >::perp2(), HepGeom::BasicVector3D< T >::phi(), HepGeom::Plane3D< T >::point(), HepGeom::BasicVector3D< T >::rotate(), HepGeom::Rotate3D::Rotate3D(), HepGeom::BasicVector3D< T >::theta(), HepGeom::Transform3D::Transform3D(), and HepGeom::BasicVector3D< T >::unit().
|
inline |
Gets y-component in cartesian coordinate system.
Definition at line 145 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
inline |
Gets z-component in cartesian coordinate system.
Definition at line 148 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
Referenced by HepGeom::BasicVector3D< T >::BasicVector3D(), HepGeom::BasicVector3D< T >::cosTheta(), HepGeom::BasicVector3D< T >::cross(), HepGeom::Plane3D< T >::distance(), HepGeom::Point3D< double >::distance2(), HepGeom::Point3D< float >::distance2(), HepGeom::BasicVector3D< T >::dot(), HepGeom::BasicVector3D< T >::mag2(), main(), HepGeom::BasicVector3D< T >::operator CLHEP::Hep3Vector(), HepGeom::Normal3D< double >::operator CLHEP::Hep3Vector(), HepGeom::Point3D< double >::operator CLHEP::Hep3Vector(), HepGeom::Vector3D< double >::operator CLHEP::Hep3Vector(), HepGeom::BasicVector3D< T >::operator*(), HepGeom::BasicVector3D< T >::operator-(), HepGeom::BasicVector3D< T >::operator/(), HepGeom::Normal3D< double >::operator=(), HepGeom::Normal3D< float >::operator=(), HepGeom::Point3D< double >::operator=(), HepGeom::Point3D< float >::operator=(), HepGeom::Vector3D< double >::operator=(), HepGeom::Vector3D< float >::operator=(), HepGeom::BasicVector3D< T >::orthogonal(), HepGeom::Plane3D< T >::point(), HepGeom::BasicVector3D< T >::rotate(), HepGeom::Rotate3D::Rotate3D(), HepGeom::BasicVector3D< T >::theta(), HepGeom::Transform3D::Transform3D(), and HepGeom::BasicVector3D< T >::unit().
|
inline |
Gets z-component in cartesian coordinate system.
Definition at line 148 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::v_.
|
related |
Comparison of two vectors for inequality.
Definition at line 557 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Comparison of two vectors for inequality.
Definition at line 557 of file Geometry/BasicVector3D.h.
|
related |
Comparison of two vectors for inequality.
Definition at line 448 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Comparison of two vectors for inequality.
Definition at line 448 of file Geometry/BasicVector3D.h.
|
related |
Scalar product of two vectors.
Definition at line 520 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Scalar product of two vectors.
Definition at line 520 of file Geometry/BasicVector3D.h.
|
related |
Multiplication vector by scalar.
Definition at line 511 of file CLHEP/Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Multiplication vector by scalar.
Definition at line 511 of file Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Scalar product of two vectors.
Definition at line 412 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Scalar product of two vectors.
Definition at line 412 of file Geometry/BasicVector3D.h.
|
related |
Multiplication vector by scalar.
Definition at line 403 of file CLHEP/Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Multiplication vector by scalar.
Definition at line 403 of file Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Multiplication scalar by vector.
Definition at line 529 of file CLHEP/Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Multiplication scalar by vector.
Definition at line 529 of file Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Multiplication scalar by vector.
Definition at line 421 of file CLHEP/Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Multiplication scalar by vector.
Definition at line 421 of file Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Addition of two vectors.
Definition at line 484 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Addition of two vectors.
Definition at line 484 of file Geometry/BasicVector3D.h.
|
related |
Unary plus.
Definition at line 477 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Unary plus.
Definition at line 477 of file Geometry/BasicVector3D.h.
|
related |
Addition of two vectors.
Definition at line 376 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Addition of two vectors.
Definition at line 376 of file Geometry/BasicVector3D.h.
|
related |
Unary plus.
Definition at line 369 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Unary plus.
Definition at line 369 of file Geometry/BasicVector3D.h.
|
related |
Subtraction of two vectors.
Definition at line 502 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Subtraction of two vectors.
Definition at line 502 of file Geometry/BasicVector3D.h.
|
related |
Unary minus.
Definition at line 493 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Unary minus.
Definition at line 493 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Subtraction of two vectors.
Definition at line 394 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Subtraction of two vectors.
Definition at line 394 of file Geometry/BasicVector3D.h.
|
related |
Unary minus.
Definition at line 385 of file CLHEP/Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Unary minus.
Definition at line 385 of file Geometry/BasicVector3D.h.
References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Division vector by scalar.
Definition at line 538 of file CLHEP/Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Division vector by scalar.
Definition at line 538 of file Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Division vector by scalar.
Definition at line 430 of file CLHEP/Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Division vector by scalar.
Definition at line 430 of file Geometry/BasicVector3D.h.
References a, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
|
related |
Output to stream.
Definition at line 263 of file BasicVector3D.cc.
|
related |
|
related |
Output to stream.
Definition at line 107 of file BasicVector3D.cc.
|
related |
Comparison of two vectors for equality.
Definition at line 547 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Comparison of two vectors for equality.
Definition at line 547 of file Geometry/BasicVector3D.h.
|
related |
Comparison of two vectors for equality.
Definition at line 439 of file CLHEP/Geometry/BasicVector3D.h.
|
related |
Comparison of two vectors for equality.
Definition at line 439 of file Geometry/BasicVector3D.h.
|
related |
Input from stream.
Definition at line 271 of file BasicVector3D.cc.
|
related |
Input from stream.
Definition at line 271 of file BasicVector3D.cc.
|
related |
Input from stream.
Definition at line 115 of file BasicVector3D.cc.
|
related |
Input from stream.
Definition at line 115 of file BasicVector3D.cc.
|
protected |
Definition at line 30 of file CLHEP/Geometry/BasicVector3D.h.
Referenced by HepGeom::BasicVector3D< T >::BasicVector3D(), HepGeom::BasicVector3D< double >::operator const double *(), HepGeom::BasicVector3D< double >::operator double *(), HepGeom::BasicVector3D< T >::operator()(), HepGeom::BasicVector3D< T >::operator*=(), HepGeom::BasicVector3D< T >::operator+=(), HepGeom::BasicVector3D< T >::operator-=(), HepGeom::BasicVector3D< T >::operator/=(), HepGeom::BasicVector3D< T >::operator=(), HepGeom::BasicVector3D< T >::operator[](), HepGeom::BasicVector3D< T >::set(), HepGeom::BasicVector3D< T >::setMag(), HepGeom::BasicVector3D< T >::setPerp(), HepGeom::BasicVector3D< T >::setX(), HepGeom::BasicVector3D< T >::setY(), HepGeom::BasicVector3D< T >::setZ(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().