FastLED 3.10.8
Loading...
Searching...
No Matches

◆ radiansToA24_fp()

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

Definition at line 39 of file render_value_fp.h.

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

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

Referenced by render_value_fp().

+ Here is the caller graph for this function: