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

◆ sin() [2/2]

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

Definition at line 301 of file s16x16.h.

301 {
302 return from_raw(fl::sin32(angle_to_a24(angle)) >> 15);
303 }
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NOEXCEPT
Definition s16x16.h:54
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24(s16x16 angle) FL_NOEXCEPT
Definition s16x16.h:413
FASTLED_FORCE_INLINE i32 sin32(u32 angle) FL_NOEXCEPT
Definition sin32.h:59

References s16x16(), angle_to_a24(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, from_raw(), and fl::sin32().

+ Here is the call graph for this function: