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

◆ atan_unit()

template<typename Derived, int IntBits, int FracBits>
static FASTLED_FORCE_INLINE Derived fl::fixed_point_base< Derived, IntBits, FracBits >::atan_unit ( Derived t)
inlinestaticprivate

Definition at line 485 of file base.h.

485 {
486 constexpr Derived c0(0.9998779297f);
487 constexpr Derived c1(-0.3269348145f);
488 constexpr Derived c2(0.1594085693f);
489 constexpr Derived c3(-0.0472106934f);
490 Derived t2 = t * t;
491 return t * (c0 + t2 * (c1 + t2 * (c2 + t2 * c3)));
492 }

References FASTLED_FORCE_INLINE, and fl::t.

Referenced by atan(), and atan2().

+ Here is the caller graph for this function: