#include <cmath>
Go to the source code of this file.
◆ approx_asin_P()
template<int DEGREE>
constexpr float approx_asin_P |
( |
float |
z | ) |
|
◆ approx_asin_P< 11 >()
Definition at line 32 of file approx_asin.h.
References f, and detailsBasic3DVector::z.
33 return 1.f +
z * (0.1668075025081634521484375f +
34 z * (7.20207393169403076171875e-2
f +
35 z * (6.607978045940399169921875e-2
f +
36 z * ((-3.6048568785190582275390625e-2
f) +
z * 0.10574872791767120361328125
f))));
◆ approx_asin_P< 3 >()
◆ approx_asin_P< 5 >()
◆ approx_asin_P< 7 >()
◆ approx_asin_P< 9 >()
Definition at line 25 of file approx_asin.h.
References f, and detailsBasic3DVector::z.
26 return 1.f +
z * (0.166020572185516357421875f +
27 z * (8.44048559665679931640625e-2
f +
28 z * (1.11602735705673694610595703125e-3
f +
z * 0.103476583957672119140625f)));
◆ unsafe_acos()
template<int DEGREE>
constexpr float unsafe_acos |
( |
float |
x | ) |
|
◆ unsafe_acos07()
template<int DEGREE>
constexpr float unsafe_acos07 |
( |
float |
x | ) |
|
Definition at line 70 of file approx_asin.h.
References M_PI, and x.
71 constexpr
float pihalf =
M_PI / 2;
72 return pihalf - unsafe_asin07<DEGREE>(
x);
◆ unsafe_acos71()
template<int DEGREE>
constexpr float unsafe_acos71 |
( |
float |
x | ) |
|
◆ unsafe_asin()
template<int DEGREE>
constexpr float unsafe_asin |
( |
float |
x | ) |
|
◆ unsafe_asin07()
template<int DEGREE>
constexpr float unsafe_asin07 |
( |
float |
x | ) |
|
◆ unsafe_asin71()
template<int DEGREE>
constexpr float unsafe_asin71 |
( |
float |
x | ) |
|
Definition at line 85 of file approx_asin.h.
References M_PI, and x.
86 constexpr
float pihalf =
M_PI / 2;
87 return pihalf - unsafe_acos71<DEGREE>(
x);