FastLED 3.10.6
Loading...
Searching...
No Matches

◆ hermite_basis()

void fl::colorimetric_response::hermite_basis ( float t,
float out[4] )
inline

Definition at line 301 of file colorimetric_response.h.

301 {
302 const float t2 = t * t;
303 const float t3 = t2 * t;
304 out[0] = 2.0f * t3 - 3.0f * t2 + 1.0f;
305 out[1] = -2.0f * t3 + 3.0f * t2;
306 out[2] = t3 - 2.0f * t2 + t;
307 out[3] = t3 - t2;
308}

References fl::FL_NO_EXCEPT, and fl::t.