template<
class T>
class ROOT::Math::Polar3D< T >
Class describing a polar coordinate system based on r, theta and phi Phi is restricted to be in the range [-PI,PI)
Class describing a 3D Polar coordinate system (r, theta, phi coordinates)
- See also
- Physics Vectors
Definition at line 46 of file Polar3D.h.
|
| constexpr | Polar3D () noexcept=default |
| | Default constructor with r=theta=phi=0.
|
| |
| template<class CoordSystem > |
| constexpr | Polar3D (const CoordSystem &v) |
| | Construct from any Vector or coordinate system implementing R(), Theta() and Phi()
|
| |
| constexpr | Polar3D (T r, T theta, T phi) noexcept |
| | Construct from the polar coordinates: r, theta and phi.
|
| |
| Scalar | Eta () const |
| |
| void | GetCoordinates (Scalar &r, Scalar &theta, Scalar &phi) 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 Polar3D &rhs) const |
| |
| template<class CoordSystem > |
| Polar3D & | operator= (const CoordSystem &c) |
| | generic assignment operator from any coordinate system
|
| |
| bool | operator== (const Polar3D &rhs) const |
| | Exact equality.
|
| |
| Scalar | Perp2 () const |
| |
| Scalar | Phi () const |
| |
| Scalar | R () const |
| |
| Scalar | Rho () const |
| |
| void | Scale (T a) |
| | scale by a scalar quantity - for polar coordinates r changes
|
| |
| void | SetCoordinates (const Scalar src[]) |
| | Set internal data based on an array of 3 Scalar numbers.
|
| |
| void | SetCoordinates (Scalar r, Scalar theta, Scalar phi) |
| | Set internal data based on 3 Scalar numbers.
|
| |
| void | SetPhi (const T &phi) |
| | set the phi coordinate value keeping r and theta constant
|
| |
| void | SetR (const T &r) |
| | set the r coordinate value keeping theta and phi constant
|
| |
| void | SetTheta (const T &theta) |
| | set the theta coordinate value keeping r and phi constant
|
| |
| void | SetXYZ (Scalar x, Scalar y, Scalar z) |
| | set all values using cartesian coordinates
|
| |
| Scalar | Theta () const |
| |
| Scalar | X () const |
| |
| T | x () const |
| |
| Scalar | Y () const |
| |
| T | y () const |
| |
| Scalar | Z () const |
| |
| T | z () const |
| |