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

Method atan

src/fl/math/fixed_point.h:405–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403
404 // Arctangent: atan(1.0) ≈ π/4 ≈ 0.785
405 static FASTLED_FORCE_INLINE fixed_point atan(fixed_point x) FL_NOEXCEPT {
406 return from_raw(Base::atan(x).raw());
407 }
408
409 // Two-argument arctangent: atan2(y, x) returns angle in [-π, π].
410 // FP::atan2(FP(1.0f), FP(1.0f)) // ≈ π/4 ≈ 0.785

Callers

nothing calls this directly

Calls 2

atanFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected