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

◆ cos() [2/2]

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

Definition at line 349 of file s16x16.h.

349 {
350 return from_raw(fl::cos32(angle_to_a24(angle)) >> 15);
351 }
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24(s16x16 angle) FL_NO_EXCEPT
Definition s16x16.h:457
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NO_EXCEPT
Definition s16x16.h:56
FASTLED_FORCE_INLINE i32 cos32(u32 angle) FL_NO_EXCEPT
Definition sin32.h:79

References s16x16(), angle_to_a24(), fl::cos32(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, and from_raw().

+ Here is the call graph for this function: