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

◆ polyABToQ16()

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

Convert any Coord type to Q16.16, clamped to ±8191 px.

This is the one conversion both polygon kernels use: primitives.h forwards its toQ16Clamped here, because this header is included at the top of primitives.h, before that header's own helpers are declared.

Definition at line 133 of file poly_abuffer.h.

133 {
134 return polyABClampPx(val.to_float());
135}
fl::i32 polyABClampPx(float px) FL_NO_EXCEPT
Float -> Q16.16, clamped to ±8191 px.

References fl::FL_NO_EXCEPT, and polyABClampPx().

Referenced by drawPolygonABufferCore(), and toQ16Clamped().

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