Class describing a 3D cartesian coordinate system (x, y, z coordinates)
Definition at line 46 of file Cartesian3D.h.
Public Types | |
| typedef T | Scalar |
Public Member Functions | |
| constexpr | Cartesian3D () noexcept=default |
| Default constructor with x=y=z=0. | |
| template<class CoordSystem > | |
| constexpr | Cartesian3D (const CoordSystem &v) |
| Construct from any Vector or coordinate system implementing X(), Y() and Z() | |
| template<class T2 > | |
| constexpr | Cartesian3D (const Polar3D< T2 > &v) |
| constexpr | Cartesian3D (Scalar xx, Scalar yy, Scalar zz) noexcept |
| Constructor from x,y,z coordinates. | |
| Scalar | Eta () const |
| void | GetCoordinates (Scalar &xx, Scalar &yy, Scalar &zz) const |
| get internal data into 3 Scalar numbers | |
| void | GetCoordinates (Scalar dest[]) const |
| get internal data into an array of 3 Scalar numbers | |
| Scalar | Mag2 () const |
| void | Negate () |
| negate the vector | |
| bool | operator!= (const Cartesian3D &rhs) const |
| template<class CoordSystem > | |
| Cartesian3D & | operator= (const CoordSystem &v) |
| Assignment from any class implementing x(),y() and z() (can assign from any coordinate system) | |
| template<class T2 > | |
| Cartesian3D & | operator= (const Polar3D< T2 > &v) |
| bool | operator== (const Cartesian3D &rhs) const |
| Exact equality. | |
| Scalar | Perp2 () const |
| Scalar | Phi () const |
| Scalar | R () const |
| Scalar | Rho () const |
| void | Scale (Scalar a) |
| scale the vector by a scalar quantity a | |
| void | SetCoordinates (const Scalar src[]) |
| Set internal data based on an array of 3 Scalar numbers. | |
| void | SetCoordinates (Scalar xx, Scalar yy, Scalar zz) |
| Set internal data based on 3 Scalar numbers. | |
| void | SetX (Scalar xx) |
| set the x coordinate value keeping y and z constant | |
| void | SetXYZ (Scalar xx, Scalar yy, Scalar zz) |
| set all values using cartesian coordinates | |
| void | SetY (Scalar yy) |
| set the y coordinate value keeping x and z constant | |
| void | SetZ (Scalar zz) |
| set the z coordinate value keeping x and y constant | |
| Scalar | Theta () const |
| Scalar | X () const |
| T | x () const |
| Scalar | Y () const |
| T | y () const |
| Scalar | Z () const |
| T | z () const |
Static Public Attributes | |
| static constexpr unsigned int | Dimension = 3U |
Private Attributes | |
| T | fX = 0 |
| T | fY = 0 |
| T | fZ = 0 |
#include <Math/GenVector/Cartesian3D.h>
| typedef T ROOT::Math::Cartesian3D< T >::Scalar |
Definition at line 50 of file Cartesian3D.h.
|
constexprdefaultnoexcept |
Default constructor with x=y=z=0.
|
inlineconstexprnoexcept |
Constructor from x,y,z coordinates.
Definition at line 62 of file Cartesian3D.h.
|
inlineexplicitconstexpr |
Construct from any Vector or coordinate system implementing X(), Y() and Z()
Definition at line 69 of file Cartesian3D.h.
|
inlineexplicitconstexpr |
Definition at line 179 of file Cartesian3D.h.
|
inline |
Definition at line 104 of file Cartesian3D.h.
|
inline |
get internal data into 3 Scalar numbers
Definition at line 91 of file Cartesian3D.h.
|
inline |
get internal data into an array of 3 Scalar numbers
Definition at line 80 of file Cartesian3D.h.
|
inline |
Definition at line 96 of file Cartesian3D.h.
|
inline |
negate the vector
Definition at line 145 of file Cartesian3D.h.
|
inline |
Definition at line 165 of file Cartesian3D.h.
|
inline |
Assignment from any class implementing x(),y() and z() (can assign from any coordinate system)
Definition at line 152 of file Cartesian3D.h.
|
inline |
Definition at line 193 of file Cartesian3D.h.
|
inline |
Exact equality.
Definition at line 162 of file Cartesian3D.h.
|
inline |
Definition at line 97 of file Cartesian3D.h.
|
inline |
Definition at line 101 of file Cartesian3D.h.
|
inline |
Definition at line 99 of file Cartesian3D.h.
|
inline |
Definition at line 98 of file Cartesian3D.h.
|
inline |
scale the vector by a scalar quantity a
Definition at line 135 of file Cartesian3D.h.
|
inline |
Set internal data based on an array of 3 Scalar numbers.
Definition at line 75 of file Cartesian3D.h.
|
inline |
Set internal data based on 3 Scalar numbers.
Definition at line 86 of file Cartesian3D.h.
|
inline |
set the x coordinate value keeping y and z constant
Definition at line 111 of file Cartesian3D.h.
|
inline |
set all values using cartesian coordinates
Definition at line 126 of file Cartesian3D.h.
|
inline |
set the y coordinate value keeping x and z constant
Definition at line 116 of file Cartesian3D.h.
|
inline |
set the z coordinate value keeping x and y constant
Definition at line 121 of file Cartesian3D.h.
|
inline |
Definition at line 100 of file Cartesian3D.h.
|
inline |
Definition at line 93 of file Cartesian3D.h.
|
inline |
Definition at line 172 of file Cartesian3D.h.
|
inline |
Definition at line 94 of file Cartesian3D.h.
|
inline |
Definition at line 173 of file Cartesian3D.h.
|
inline |
Definition at line 95 of file Cartesian3D.h.
|
inline |
Definition at line 174 of file Cartesian3D.h.
|
staticconstexpr |
Definition at line 52 of file Cartesian3D.h.
|
private |
Definition at line 224 of file Cartesian3D.h.
|
private |
Definition at line 225 of file Cartesian3D.h.
|
private |
Definition at line 226 of file Cartesian3D.h.