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

◆ polyABToQ16< int >()

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

Definition at line 153 of file poly_abuffer.h.

153 { // fl-lint: int-template-ok int coord API
154 if (val > 8191) return polyABQ16Max;
155 if (val < -8191) return -polyABQ16Max;
156 return static_cast<fl::i32>(val) << 16;
157}
static const fl::i32 polyABQ16Max
Maximum |vertex coordinate| accepted, in Q16.16 units (8191 px keeps all values and edge deltas in i3...

References fl::FL_NO_EXCEPT, and polyABQ16Max.