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

◆ sin() [2/2]

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

Definition at line 273 of file s12x4.h.

273 {
274 return from_raw(static_cast<i16>(fl::sin32(angle_to_a24(angle)) >> 27));
275 }
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24(s12x4 angle) FL_NOEXCEPT
Definition s12x4.h:383
static constexpr FASTLED_FORCE_INLINE s12x4 from_raw(i16 raw) FL_NOEXCEPT
Definition s12x4.h:42
FASTLED_FORCE_INLINE i32 sin32(u32 angle) FL_NOEXCEPT
Definition sin32.h:59

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

+ Here is the call graph for this function: