MCPcopy Create free account
hub / github.com/FastLED/FastLED / atan_full_

Function atan_full_

src/fl/math/math.cpp.hpp:467–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465
466template <typename F>
467inline F atan_full_(F u) FL_NOEXCEPT {
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}
477
478template <typename F>
479inline F atan2_full_(F y, F x) FL_NOEXCEPT {

Callers 1

atan2_full_Function · 0.85

Calls 2

FClass · 0.85
atan_poly_unit_Function · 0.85

Tested by

no test coverage detected