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

◆ fixed_point_base() [2/3]

template<typename Derived, int IntBits, int FracBits>
fl::fixed_point_base< Derived, IntBits, FracBits >::fixed_point_base ( float f)
inlineexplicitconstexpr

Definition at line 49 of file base.h.

50 : mValue(static_cast<raw_type>(f * (static_cast<raw_type>(1) << FRAC_BITS))) {}
static constexpr int FRAC_BITS
Definition base.h:38
typename traits::raw_type raw_type
Definition base.h:31
raw_type mValue
Definition base.h:41

References fixed_point_base(), constexpr, FRAC_BITS, and mValue.

+ Here is the call graph for this function: