#include <cmath>
Go to the source code of this file.
template<int DEGREE>
float approx_asin_P |
( |
float |
z | ) |
|
|
inline |
Definition at line 26 of file approx_asin.h.
References f, and detailsBasic3DVector::z.
27 return 1.f +
z * (0.1668075025081634521484375f +
z * (7.20207393169403076171875e-2
f +
z * (6.607978045940399169921875e-2
f +
z * ((-3.6048568785190582275390625e-2
f) +
z * 0.10574872791767120361328125
f))));
Definition at line 22 of file approx_asin.h.
References f, and detailsBasic3DVector::z.
23 return 1.f +
z * (0.166020572185516357421875f +
z * (8.44048559665679931640625e-2
f +
z * (1.11602735705673694610595703125e-3
f +
z * 0.103476583957672119140625f)));
template<int DEGREE>
float unsafe_acos |
( |
float |
x | ) |
|
|
inline |
Definition at line 90 of file approx_asin.h.
References funct::abs(), f, and x().
91 return (
std::abs(
x)<0.71
f) ? unsafe_acos07<DEGREE>(
x) : unsafe_acos71<DEGREE>(
x);
T x() const
Cartesian x coordinate.
Abs< T >::type abs(const T &t)
template<int DEGREE>
float unsafe_acos07 |
( |
float |
x | ) |
|
|
inline |
Definition at line 63 of file approx_asin.h.
References constexpr, M_PI, and x().
65 return pihalf - unsafe_asin07<DEGREE>(
x);
T x() const
Cartesian x coordinate.
template<int DEGREE>
float unsafe_acos71 |
( |
float |
x | ) |
|
|
inline |
template<int DEGREE>
float unsafe_asin |
( |
float |
x | ) |
|
|
inline |
Definition at line 85 of file approx_asin.h.
References funct::abs(), f, and x().
86 return (
std::abs(
x)<0.71
f) ? unsafe_asin07<DEGREE>(
x) : unsafe_asin71<DEGREE>(
x);
T x() const
Cartesian x coordinate.
Abs< T >::type abs(const T &t)
template<int DEGREE>
float unsafe_asin07 |
( |
float |
x | ) |
|
|
inline |
template<int DEGREE>
float unsafe_asin71 |
( |
float |
x | ) |
|
|
inline |
Definition at line 79 of file approx_asin.h.
References constexpr, M_PI, and x().
81 return pihalf - unsafe_acos71<DEGREE>(
x);
T x() const
Cartesian x coordinate.