FastLED 3.9.15
Loading...
Searching...
No Matches

◆ atan_full_()

template<typename F>
F fl::detail::atan_full_ ( F u)
inline

Definition at line 467 of file math.cpp.hpp.

467 {
468 const F kPiHalf = F(1.57079632679489661923);
469 // Reduce to |u| <= 1 via the reciprocal identity.
470 if (u > F(1)) {
471 return kPiHalf - atan_poly_unit_(F(1) / u);
472 } else if (u < F(-1)) {
473 return -kPiHalf - atan_poly_unit_(F(1) / u);
474 }
475 return atan_poly_unit_(u);
476}
F atan_poly_unit_(F u) FL_NOEXCEPT
Definition math.cpp.hpp:454

References atan_poly_unit_(), and FL_NOEXCEPT.

Referenced by fl::asin_impl_double(), fl::asin_impl_float(), atan2_full_(), fl::atan_impl_double(), and fl::atan_impl_float().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: