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

◆ sincos()

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

Definition at line 282 of file s12x4.h.

283 {
284 u32 a24 = angle_to_a24(angle);
285 out_sin = from_raw(static_cast<i16>(fl::sin32(a24) >> 27));
286 out_cos = from_raw(static_cast<i16>(fl::cos32(a24) >> 27));
287 }
static constexpr FASTLED_FORCE_INLINE s12x4 from_raw(i16 raw) FL_NO_EXCEPT
Definition s12x4.h:42
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24(s12x4 angle) FL_NO_EXCEPT
Definition s12x4.h:383
FASTLED_FORCE_INLINE i32 sin32(u32 angle) FL_NO_EXCEPT
Definition sin32.h:57
FASTLED_FORCE_INLINE i32 cos32(u32 angle) FL_NO_EXCEPT
Definition sin32.h:79

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

+ Here is the call graph for this function: