FastLED 3.10.10
Loading...
Searching...
No Matches

◆ toQ16Clamped()

template<typename Coord>
fl::i32 fl::gfx::detail::toQ16Clamped ( Coord val)
inline

Convert any Coord type to Q16.16, clamped to ±8191 px (NaN -> 0).

Shared with the ABuffer kernel (poly_abuffer.h, polyABToQ16) so both backends clamp identically.

Definition at line 265 of file primitives.h.

265 {
266 return polyABToQ16<Coord>(val);
267}
fl::i32 polyABToQ16(Coord val) FL_NO_EXCEPT
Convert any Coord type to Q16.16, clamped to ±8191 px.

References fl::FL_NO_EXCEPT, polyABToQ16(), and toQ16Clamped().

Referenced by drawPolygonCore(), and toQ16Clamped().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: