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

◆ sin32()

static FASTLED_FORCE_INLINE int32_t fl::sin32 ( uint32_t angle)
static

Definition at line 36 of file sin32.h.

37{
38 uint8_t angle256 = angle / 65536;
39 int32_t subAngle = angle % 65536;
40 return sinArray[angle256] * (65536 - subAngle) + sinArray[angle256 + 1] * subAngle;
41}
const int16_t * sinArray
Definition sin32.cpp:31

References FASTLED_FORCE_INLINE, and sinArray.