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

◆ cos() [2/2]

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

Definition at line 288 of file s4x12.h.

288 {
289 return from_raw(static_cast<i16>(fl::cos32(angle_to_a24(angle)) >> 19));
290 }
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24(s4x12 angle) FL_NO_EXCEPT
Definition s4x12.h:394
static constexpr FASTLED_FORCE_INLINE s4x12 from_raw(i16 raw) FL_NO_EXCEPT
Definition s4x12.h:53
FASTLED_FORCE_INLINE i32 cos32(u32 angle) FL_NO_EXCEPT
Definition sin32.h:79

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

+ Here is the call graph for this function: