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

◆ radiansToA24_fp()

FASTLED_FORCE_INLINE fl::u32 fl::radiansToA24_fp ( fl::i32 angle_s16x16_raw)

Definition at line 38 of file render_value_fp.h.

38 {
39 constexpr fl::i32 RAD_TO_A24 = 2670177; // 16777216 / (2*PI) in s16x16 sense
40 return static_cast<fl::u32>(
41 (static_cast<fl::i64>(angle_s16x16_raw) * RAD_TO_A24) >> fl::s16x16::FRAC_BITS);
42}
static constexpr int FRAC_BITS
Definition s16x16.h:22
fl::i64 i64
Definition s16x16x4.h:222

References FASTLED_FORCE_INLINE, and fl::s16x16::FRAC_BITS.

Referenced by render_value_fp().

+ Here is the caller graph for this function: