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

◆ cos32()

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

Definition at line 45 of file sin32.h.

45 {
46 u8 angle256 = angle / 65536;
47 i32 subAngle = angle % 65536;
48 return cosArray[angle256] * (65536 - subAngle) +
49 cosArray[angle256 + 1] * subAngle;
50}
unsigned char u8
Definition int.h:17
const i16 * cosArray
Definition sin32.cpp:48

References cosArray, and FASTLED_FORCE_INLINE.

Referenced by easeInOutSine16(), and easeInSine16().

+ Here is the caller graph for this function: