#include <vec2.h>
|
| static vec2 | RPhi (const double r, const double phi) noexcept |
| | Create vec2 from Radius and Angle. More...
|
| |
| static double | Phi_mpi_pi (double phi) |
| | Phi_mpi_pi returns phi angle in interval [-pi,pi) More...
|
| |
|
| double | x = {} |
| |
| double | y = {} |
| |
◆ vec2() [1/5]
| constexpr ant::vec2::vec2 |
( |
| ) |
|
|
defaultnoexcept |
◆ vec2() [2/5]
| constexpr ant::vec2::vec2 |
( |
const vec2 & |
| ) |
|
|
defaultnoexcept |
◆ vec2() [3/5]
| constexpr ant::vec2::vec2 |
( |
vec2 && |
| ) |
|
|
defaultnoexcept |
◆ vec2() [4/5]
| constexpr ant::vec2::vec2 |
( |
const double |
X, |
|
|
const double |
Y |
|
) |
| |
|
inlinenoexcept |
◆ vec2() [5/5]
| vec2::vec2 |
( |
const TVector2 & |
v | ) |
|
|
noexcept |
◆ Angle()
| double ant::vec2::Angle |
( |
const vec2 & |
other | ) |
const |
|
inline |
Calcualte the angle between two vec2.
- Parameters
-
- Returns
- angle in radians
Taken from ROOT TVector3
◆ Dot()
| double ant::vec2::Dot |
( |
const vec2 & |
other | ) |
const |
|
inlinenoexcept |
Dot product.
- Parameters
-
- Returns
◆ operator TVector2()
| vec2::operator TVector2 |
( |
| ) |
const |
|
noexcept |
◆ operator!=()
| bool ant::vec2::operator!= |
( |
const vec2 & |
other | ) |
const |
|
inlinenoexcept |
◆ operator*()
| vec2 ant::vec2::operator* |
( |
const double |
s | ) |
const |
|
inlinenoexcept |
◆ operator*=()
| vec2& ant::vec2::operator*= |
( |
const double |
s | ) |
|
|
inlinenoexcept |
◆ operator+()
| vec2 ant::vec2::operator+ |
( |
const vec2 & |
other | ) |
const |
|
inlinenoexcept |
◆ operator+=()
| vec2& ant::vec2::operator+= |
( |
const vec2 & |
other | ) |
|
|
inlinenoexcept |
◆ operator-()
| vec2 ant::vec2::operator- |
( |
const vec2 & |
other | ) |
const |
|
inlinenoexcept |
◆ operator-=()
| vec2& ant::vec2::operator-= |
( |
const vec2 & |
other | ) |
|
|
inlinenoexcept |
◆ operator/()
| vec2 ant::vec2::operator/ |
( |
const double |
s | ) |
const |
|
inlinenoexcept |
◆ operator/=()
| vec2& ant::vec2::operator/= |
( |
const double |
s | ) |
|
|
inlinenoexcept |
◆ operator=() [1/3]
| vec2& ant::vec2::operator= |
( |
const vec2 & |
| ) |
|
|
defaultnoexcept |
◆ operator=() [2/3]
◆ operator=() [3/3]
| vec2 & vec2::operator= |
( |
const TVector2 & |
v | ) |
|
|
noexcept |
◆ operator==()
| bool ant::vec2::operator== |
( |
const vec2 & |
other | ) |
const |
|
inlinenoexcept |
◆ Phi()
| double ant::vec2::Phi |
( |
| ) |
const |
|
inline |
Phi angle.
- Returns
- radians
◆ Phi_mpi_pi()
| static double ant::vec2::Phi_mpi_pi |
( |
double |
phi | ) |
|
|
inlinestatic |
Phi_mpi_pi returns phi angle in interval [-pi,pi)
- Parameters
-
- Returns
- Note
- copied from TVector2::Phi_mpi_pi
◆ R()
| double ant::vec2::R |
( |
| ) |
const |
|
inlinenoexcept |
Get the length or Radius of the vector.
- Returns
- length
- See also
- R2()
◆ R2()
| double ant::vec2::R2 |
( |
| ) |
const |
|
inlinenoexcept |
Get the length or radius squared.
- Returns
- See also
- R()
◆ RPhi()
| static vec2 ant::vec2::RPhi |
( |
const double |
r, |
|
|
const double |
phi |
|
) |
| |
|
inlinestaticnoexcept |
Create vec2 from Radius and Angle.
- Parameters
-
| r | Radius |
| phi | Angle in radians |
- Returns
- new vec2
◆ Unit()
| vec2 ant::vec2::Unit |
( |
| ) |
const |
|
inlinenoexcept |
vector parallel to this one with R() == 1.0
- Returns
- unit length vector
The documentation for this struct was generated from the following files: