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

Detailed Description

template<class T, int F, int I>
class 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 16 of file qfx.h.

#include <qfx.h>

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

Public Member Functions

 qfx (float fx)
 Constructor, storing a float as a fractional int.
 
 qfx (uint8_t _i, uint8_t _f)
 Constructor, storing a fractional int directly.
 
int16_t operator* (int16_t v)
 Multiply the fractional int by a value.
 
int32_t operator* (int32_t v)
 Multiply the fractional int by a value.
 
uint16_t operator* (uint16_t v)
 Multiply the fractional int by a value.
 
uint32_t operator* (uint32_t v)
 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: