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

◆ MapT()

template<typename X, typename Y>
const Y MapT ( const X & x,
const X & x1,
const X & x2,
const Y & y1,
const Y & y2 )

Definition at line 10 of file ApproximatingFunction.h.

12 {
13 Y return_val = static_cast<Y>((x - x1) * (y2 - y1) / (x2 - x1) + y1);
14 return return_val;
15}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80

References x.

Referenced by Interp().

+ Here is the caller graph for this function: