#include <fixedint.h>
Public Member Functions | |
| TFixedInt (double d) | |
| template<typename T2 , uint otherTB, uint otherDB> | |
| TFixedInt (const TFixedInt< T2, otherTB, otherDB > &fi) | |
| T | raw () const |
| int16 | toInt () const |
| double | toDouble () const |
| TFixedInt | operator- () const |
| int16 | multToInt (int32 i) |
| TFixedInt | operator* (int32 i) const |
| TFixedInt | operator* (const TFixedInt &f) const |
| TFixedInt | operator/ (int32 i) const |
| TFixedInt | operator+ (const TFixedInt &f) const |
| TFixedInt | operator- (const TFixedInt &f) const |
| void | operator+= (const TFixedInt &f) |
| void | operator-= (const TFixedInt &f) |
| bool | operator== (double d) const |
| bool | operator!= (double d) const |
| bool | operator< (double d) const |
| bool | operator<= (double d) const |
| bool | operator> (double d) const |
| bool | operator>= (double d) const |
| bool | operator== (const TFixedInt &f) const |
| bool | operator!= (const TFixedInt &f) const |
| bool | operator< (const TFixedInt &f) const |
| bool | operator<= (const TFixedInt &f) const |
| bool | operator> (const TFixedInt &f) const |
| bool | operator>= (const TFixedInt &f) const |
| void | saveLoadWithSerializer (Common::Serializer &ser) override |
Static Public Member Functions | |
| static TFixedInt | fromRaw (T raw) |
Signed fixed-point number.
|
inlineexplicit |
Constructor from other fixed-point formats.
|
inline |
Multiplication with an int, with the result being an int. Use this if the result might exceed the capacity of this type.
|
inline |
Multiplication with an int, with the result being the same type.
|
inline |
Multiplication with a FixedInt, with the result being the same type.
|
inline |
Division with an int, with the result being the same type.