![]() |
ATLAS Offline Software
|
Helper for azimuthal angle calculations. More...
#include <numbers>#include <concepts>#include <cmath>Go to the source code of this file.
Namespaces | |
| namespace | CxxUtils |
Functions | |
| template<std::floating_point T> | |
| T | CxxUtils::wrapToPi (T phi) |
| Wrap angle in radians to [-pi, pi]. | |
| template<std::floating_point T> | |
| T | CxxUtils::deltaPhi (T phiA, T phiB) |
| Return difference phiA - phiB in range [-pi, pi]. | |
| template<std::floating_point T> | |
| T | CxxUtils::phiMean (T phiA, T phiB) |
| Calculate average of two angles. | |
| template<std::floating_point T> | |
| T | CxxUtils::phiBisect (T phiA, T phiB) |
| Bisect (average) the angle spanned by phiA and phiB. | |