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

◆ sincos()

static FASTLED_FORCE_INLINE void fl::s4x12::sincos ( s4x12 angle,
s4x12 & out_sin,
s4x12 & out_cos )
inlinestatic

Definition at line 293 of file s4x12.h.

294 {
295 u32 a24 = angle_to_a24(angle);
296 out_sin = from_raw(static_cast<i16>(fl::sin32(a24) >> 19));
297 out_cos = from_raw(static_cast<i16>(fl::cos32(a24) >> 19));
298 }
static constexpr FASTLED_FORCE_INLINE s4x12 from_raw(i16 raw) FL_NOEXCEPT
Definition s4x12.h:53
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24(s4x12 angle) FL_NOEXCEPT
Definition s4x12.h:394
FASTLED_FORCE_INLINE i32 cos32(u32 angle) FL_NOEXCEPT
Definition sin32.h:81
FASTLED_FORCE_INLINE i32 sin32(u32 angle) FL_NOEXCEPT
Definition sin32.h:59

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

+ Here is the call graph for this function: