#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 |
Definition at line 69 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
71 return x * (float(-0xf.ffe82p-4) +
z * (float(0x5.526c8p-4) +
z * (float(-0x3.18bea8p-4) +
z * (float(0x1.dce3bcp-4) +
z * (float(-0xd.7a64ap-8) +
z * float(0x3.000eap-8))))));
T x() const
Cartesian x coordinate.
Definition at line 75 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
77 return x * (float(-0xf.fffbep-4) +
z * (float(0x5.54adp-4) +
z * (float(-0x3.2b4df8p-4) +
z * (float(0x2.1df79p-4) +
z * (float(-0x1.46081p-4) +
z * (float(0x8.99028p-8) +
z * float(-0x1.be0bc4p-8))))))) ;
T x() const
Cartesian x coordinate.
Definition at line 81 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
83 return x * (float(-0xf.ffff4p-4) +
z * (float(0x5.552f9p-4 +
z * (
float(-0x3.30f728p-4) +
z * (
float(0x2.39826p-4) +
z * (
float(-0x1.8a880cp-4) +
z * (
float(0xe.484d6p-8) +
z * (
float(-0x5.93d5p-8) +
z *
float(0x1.0875dcp-8)))))))));
T x() const
Cartesian x coordinate.
Definition at line 46 of file approx_atan2.h.
References x().
47 return x * (float(-0xf.8eed2p-4) +
x*
x * float(0x3.1238p-4)) ;
T x() const
Cartesian x coordinate.
Definition at line 51 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
53 return x * (float(-0xf.ecfc8p-4) +
z * (float(0x4.9e79dp-4) +
z * float(-0x1.44f924p-4) ) );
T x() const
Cartesian x coordinate.
Definition at line 57 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
59 return x * (float(-0xf.fcc7ap-4) +
z * (float(0x5.23886p-4) +
z * (float(-0x2.571968p-4) +
z * float(0x9.fb05p-8) ) ) ) ;
T x() const
Cartesian x coordinate.
Definition at line 63 of file approx_atan2.h.
References x(), and detailsBasic3DVector::z.
65 return x * (float(-0xf.ff73ep-4) +
z * (float(0x5.48ee1p-4) +
z * (float(-0x2.e1efe8p-4) +
z * (float(0x1.5cce54p-4) +
z * float(-0x5.56245p-8) ) ) ) );
T x() const
Cartesian x coordinate.
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 |