FastLED 3.10.6
Loading...
Searching...
No Matches

◆ atan_full_()

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

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

548 {
549 const F kPiHalf = F(1.57079632679489661923);
550 // Reduce to |u| <= 1 via the reciprocal identity.
551 if (u > F(1)) {
552 return kPiHalf - atan_poly_unit_(F(1) / u);
553 } else if (u < F(-1)) {
554 return -kPiHalf - atan_poly_unit_(F(1) / u);
555 }
556 return atan_poly_unit_(u);
557}
F atan_poly_unit_(F u) FL_NO_EXCEPT
Definition math.cpp.hpp:535

References atan_poly_unit_(), and fl::FL_NO_EXCEPT.

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: