FastLED 3.9.15
Loading...
Searching...
No Matches

◆ clamp()

FASTLED_FORCE_INLINE s16x16x4 fl::s16x16x4::clamp ( s16x16x4 lo,
s16x16x4 hi ) const
inline

Clamp to [lo, hi].

Definition at line 100 of file s16x16x4.h.

100 {
101 return max(lo).min(hi);
102 }
FASTLED_FORCE_INLINE s16x16x4 min(s16x16x4 b) const
Element-wise minimum.
Definition s16x16x4.h:90
FASTLED_FORCE_INLINE s16x16x4 max(s16x16x4 b) const
Element-wise maximum.
Definition s16x16x4.h:95

References FASTLED_FORCE_INLINE.