tbx
0.7.6
|
Class to represent a fixed point number with 16bits before and after the point. More...
#include <fixed16.h>
Public Member Functions | |
Fixed16 (const Fixed16 &other) | |
Fixed16 (int value) | |
Fixed16 (double value) | |
operator int () const | |
operator double () const | |
int | bits () const |
Get bits used to represent this number. | |
Fixed16 & | operator= (const Fixed16 &other) |
bool | operator< (const Fixed16 &other) |
bool | operator> (const Fixed16 &other) |
bool | operator<= (const Fixed16 &other) |
bool | operator>= (const Fixed16 &other) |
Fixed16 & | operator++ () |
Fixed16 & | operator-- () |
Fixed16 | operator++ (int) |
Fixed16 | operator-- (int) |
Fixed16 & | operator+= (const Fixed16 &other) |
Fixed16 & | operator-= (const Fixed16 &other) |
Fixed16 & | operator*= (const Fixed16 &other) |
Fixed16 & | operator/= (const Fixed16 &other) |
Fixed16 | operator- () |
Fixed16 & | operator= (int value) |
bool | operator== (int value) const |
bool | operator!= (int value) const |
bool | operator< (int value) const |
bool | operator> (int value) const |
bool | operator<= (int value) const |
bool | operator>= (int value) const |
Fixed16 & | operator+= (int value) |
Fixed16 & | operator-= (int value) |
Fixed16 & | operator*= (int value) |
Fixed16 & | operator/= (int value) |
Fixed16 & | operator= (double value) |
bool | operator== (double value) const |
bool | operator!= (double value) const |
bool | operator< (double value) const |
bool | operator> (double value) const |
bool | operator<= (double value) const |
bool | operator>= (double value) const |
Fixed16 & | operator+= (double value) |
Fixed16 & | operator-= (double value) |
Fixed16 & | operator*= (double value) |
Fixed16 & | operator/= (double value) |
Class to represent a fixed point number with 16bits before and after the point.
There is no checking for range errors.