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

◆ cos() [2/2]

static FASTLED_FORCE_INLINE s24x8 fl::s24x8::cos ( s24x8 angle)
inlinestatic

Definition at line 286 of file s24x8.h.

286 {
287 return from_raw(fl::cos32(angle_to_a24(angle)) >> (31 - FRAC_BITS));
288 }
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24(s24x8 angle) FL_NOEXCEPT
Definition s24x8.h:392
static constexpr FASTLED_FORCE_INLINE s24x8 from_raw(i32 raw) FL_NOEXCEPT
Definition s24x8.h:53
static constexpr int FRAC_BITS
Definition s24x8.h:22
FASTLED_FORCE_INLINE i32 cos32(u32 angle) FL_NOEXCEPT
Definition sin32.h:81

References s24x8(), angle_to_a24(), fl::cos32(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, FRAC_BITS, and from_raw().

+ Here is the call graph for this function: