|
FastLED 3.10.6
|
| bool fl::anonymous_namespace{source_xyz.cpp.hpp}::sourcePrimariesEncloseAreaQ16 | ( | const i32(&) | r[2], |
| const i32(&) | g[2], | ||
| const i32(&) | b[2] ) |
True when the three primaries enclose an actual area of chromaticity.
A near-singular primary set passes any determinant guard as rounding noise, so the degeneracy is caught geometrically: twice the triangle's area, in Q32, against 1e-4 (sRGB's is 0.224). Measured on the float path, red and green identical gave a determinant of -1.09e-7 and an inverse of pure noise.
Definition at line 32 of file source_xyz.cpp.hpp.
References fl::FL_NO_EXCEPT, fl::g, and sourcePrimariesEncloseAreaQ16().
Referenced by sourcePrimariesEncloseAreaQ16().
Here is the call graph for this function:
Here is the caller graph for this function: