#include <cstdint>
#include <cmath>
#include <limits>
#include <algorithm>
Go to the source code of this file.
template<int DEGREE>
float approx_atan2f_P |
( |
float |
x | ) |
|
|
inline |
template<int DEGREE>
float approx_atan2i_P |
( |
float |
x | ) |
|
|
inline |
Definition at line 154 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
156 return x * (-683549696.f +
z * (227369312.f +
z * (-132297008.f +
z * (79584144.f +
z * (-35987016.f +
z * 8010488.f)))));
T x() const
Cartesian x coordinate.
Definition at line 160 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
162 return x * (-683562624.f +
z * (227746080.f +
z * (-135400128.f +
z * (90460848.f +
z * (-54431464.f +
z * (22973256.f +
z * (-4657049.f)))))));
T x() const
Cartesian x coordinate.
Definition at line 165 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
167 return x * (-683562624.f +
z * (227746080.f +
z * (-135400128.f +
z * (90460848.f +
z * (-54431464.f +
z * (22973256.f +
z * (-4657049.f)))))));
T x() const
Cartesian x coordinate.
Definition at line 148 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
150 return x * (-683473920.f +
z * (225785056.f +
z * (-123151184.f +
z * (58210592.f +
z * (-14249276.f)))));
T x() const
Cartesian x coordinate.
short phi2short |
( |
float |
x | ) |
|
|
inline |
template<int DEGREE>
float safe_atan2f |
( |
float |
y, |
|
|
float |
x |
|
) |
| |
|
inline |
float short2phi |
( |
short |
x | ) |
|
|
inline |
template<int DEGREE>
float unsafe_atan2f |
( |
float |
y, |
|
|
float |
x |
|
) |
| |
|
inline |
template<int DEGREE>
float unsafe_atan2f_impl |
( |
float |
y, |
|
|
float |
x |
|
) |
| |
|
inline |
template<int DEGREE>
int unsafe_atan2i |
( |
float |
y, |
|
|
float |
x |
|
) |
| |
|
inline |
template<int DEGREE>
int unsafe_atan2i_impl |
( |
float |
y, |
|
|
float |
x |
|
) |
| |
|
inline |
Definition at line 172 of file approx_atan2.h.
References funct::abs(), angle(), constexpr, createfilelist::int, hpstanc_transforms::max, and alignCSCRings::r.
182 auto angle = (
x>=0) ? pi4 : pi34;
183 angle +=
int(approx_atan2i_P<DEGREE>(
r));
T x() const
Cartesian x coordinate.
Abs< T >::type abs(const T &t)
T angle(T x1, T y1, T z1, T x2, T y2, T z2)