FastLED 3.9.15
Loading...
Searching...
No Matches
fl::qfx< T, F, I > Class Template Reference

Detailed Description

template<class T, int F, int I>
class fl::qfx< T, F, I >

Template class for representing fractional ints.

Template Parameters
Tunderlying type for data storage
Fnumber of fractional bits
Inumber of integer bits

Definition at line 13 of file qfx.h.

#include <qfx.h>

+ Inheritance diagram for fl::qfx< T, F, I >:

Public Member Functions

 qfx (float fx) FL_NOEXCEPT
 Constructor, storing a float as a fractional int.
 
 qfx (u8 _i, u8 _f) FL_NOEXCEPT
 Constructor, storing a fractional int directly.
 
i16 operator* (i16 v) FL_NOEXCEPT
 
i32 operator* (i32 v) FL_NOEXCEPT
 
u16 operator* (u16 v) FL_NOEXCEPT
 
u32 operator* (u32 v) FL_NOEXCEPT
 Multiply the fractional int by a value.
 

Private Attributes

f:F
 Fractional value of number.
 
i:I
 Integer value of number.
 

The documentation for this class was generated from the following file: