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

◆ angle_to_a24()

static constexpr FASTLED_FORCE_INLINE u32 fl::s24x8::angle_to_a24 ( s24x8 angle)
inlinestaticconstexprprivate

Definition at line 392 of file s24x8.h.

392 {
393 return static_cast<u32>(
394 (static_cast<i64>(angle.mValue) * RAD_TO_24) >> FRAC_BITS);
395 }
static constexpr i32 RAD_TO_24
Definition s24x8.h:391
static constexpr int FRAC_BITS
Definition s24x8.h:22
fl::i64 i64
Definition s16x16x4.h:222

References s24x8(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, FRAC_BITS, and RAD_TO_24.

Referenced by cos(), sin(), and sincos().

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