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

◆ atan_unit()

static FASTLED_FORCE_INLINE s16x16 fl::s16x16::atan_unit ( s16x16 t)
inlinestaticprivate

Definition at line 421 of file s16x16.h.

421 {
422 constexpr s16x16 c0(0.9998779297f);
423 constexpr s16x16 c1(-0.3269348145f);
424 constexpr s16x16 c2(0.1594085693f);
425 constexpr s16x16 c3(-0.0472106934f);
426 s16x16 t2 = t * t;
427 return t * (c0 + t2 * (c1 + t2 * (c2 + t2 * c3)));
428 }
constexpr s16x16() FL_NOEXCEPT=default

References s16x16(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, and fl::t.

Referenced by atan(), and atan2().

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