FastLED 3.10.8
Loading...
Searching...
No Matches

◆ atan_full_()

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

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

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

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: