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

◆ is_native_input_gamut()

bool fl::colorimetric_detail::is_native_input_gamut ( const DiodeProfile & p)
inline

Definition at line 190 of file rgbw_colorimetric.h.

190 {
191 constexpr float kPrimaryEps = 1e-6f;
192 auto close = [](const float a[2], const float b[2]) FL_NOEXCEPT {
193 const float dx = a[0] - b[0];
194 const float dy = a[1] - b[1];
195 return (dx * dx + dy * dy) < kPrimaryEps;
196 };
197 return close(p.input_xy_r, p.xy_r)
198 && close(p.input_xy_g, p.xy_g)
199 && close(p.input_xy_b, p.xy_b);
200}
float input_xy_b[2]
Definition rgbw.h:68
float xy_g[2]
Definition rgbw.h:56
float input_xy_r[2]
Definition rgbw.h:66
float xy_b[2]
Definition rgbw.h:57
float input_xy_g[2]
Definition rgbw.h:67
float xy_r[2]
Definition rgbw.h:55
#define FL_NOEXCEPT

References FL_NOEXCEPT.