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

◆ angle_to_a24()

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

Definition at line 383 of file s12x4.h.

383 {
384 return static_cast<u32>(
385 (static_cast<i64>(angle.mValue) * RAD_TO_24) >> FRAC_BITS);
386 }
static constexpr int FRAC_BITS
Definition s12x4.h:22
static constexpr i32 RAD_TO_24
Definition s12x4.h:382
fl::i64 i64
Definition stdint.h:221

References s12x4(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, 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: