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

◆ cos16lut()

static FASTLED_FORCE_INLINE i16 fl::cos16lut ( u16 angle)
static

Definition at line 64 of file sin32.h.

64 {
65 u8 angle256 = angle / 256;
66 i32 subAngle = angle % 256;
67 return (cosArray[angle256] * (256 - subAngle) +
68 cosArray[angle256 + 1] * subAngle) /
69 256;
70}
unsigned char u8
Definition int.h:17
const i16 * cosArray
Definition sin32.cpp:48

References cosArray, and FASTLED_FORCE_INLINE.