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

◆ angle_to_a24()

template<typename Derived, int IntBits, int FracBits>
static constexpr FASTLED_FORCE_INLINE u32 fl::fixed_point_base< Derived, IntBits, FracBits >::angle_to_a24 ( Derived angle)
inlinestaticconstexprprivate

Definition at line 476 of file base.h.

476 {
477 // Always use i64 for multiplication to avoid overflow
478 return static_cast<u32>(
479 (static_cast<i64>(angle.mValue) * RAD_TO_24) >> FRAC_BITS);
480 }
static constexpr int FRAC_BITS
Definition base.h:38
raw_type mValue
Definition base.h:41
static constexpr i32 RAD_TO_24
Definition base.h:475

References FASTLED_FORCE_INLINE, FRAC_BITS, and RAD_TO_24.

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

+ Here is the caller graph for this function: