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

◆ polyABToQ16< fl::s16x16 >()

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

Definition at line 162 of file poly_abuffer.h.

162 {
163 const fl::i32 r = val.raw();
164 if (r > polyABQ16Max) return polyABQ16Max;
165 if (r < -polyABQ16Max) return -polyABQ16Max;
166 return r;
167}
constexpr i32 raw() const FL_NO_EXCEPT
Definition s16x16.h:62
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.