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

◆ sin32()

static FASTLED_FORCE_INLINE i32 fl::sin32 ( u32 angle)
static

Definition at line 36 of file sin32.h.

36 {
37 u8 angle256 = angle / 65536;
38 i32 subAngle = angle % 65536;
39 return sinArray[angle256] * (65536 - subAngle) +
40 sinArray[angle256 + 1] * subAngle;
41}
unsigned char u8
Definition int.h:17
const i16 * sinArray
Definition sin32.cpp:46

References FASTLED_FORCE_INLINE, and sinArray.

Referenced by easeOutSine16().

+ Here is the caller graph for this function: