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

◆ radiansToA24()

FASTLED_FORCE_INLINE u32 fl::anonymous_namespace{chasing_spirals.cpp.hpp}::radiansToA24 ( i32 base_s16x16,
i32 offset_s16x16 )

Definition at line 59 of file chasing_spirals.cpp.hpp.

59 {
60 constexpr i32 RAD_TO_A24 = 2670177;
61 return static_cast<u32>((static_cast<i64>(base_s16x16 + offset_s16x16) * RAD_TO_A24) >> FP::FRAC_BITS);
62}
static constexpr int FRAC_BITS
Definition s16x16.h:22
fl::i64 i64
Definition s16x16x4.h:222

References FASTLED_FORCE_INLINE, fl::s16x16::FRAC_BITS, and radiansToA24().

Referenced by radiansToA24().

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