uLib
User mode C/C++ extended API library for Win32 programmers.
|
#include <uLib/Fixed.hpp>
Fixed provides a basic arithmetics implementation for 16.16 fixed point math.
It descends from FIXED, so Fixed values can be assigned to FIXED variables.
Public Functions | |
Fixed (void) | |
Fixed (const float val) | |
Fixed (const Fixed &val) | |
operator float () const | |
Fixed & | operator= (const short val) |
Fixed & | operator= (const Fixed &val) |
Fixed & | operator= (const FIXED &val) |
Fixed & | operator= (const float val) |
Fixed & | operator+= (const short rhs) |
Fixed & | operator -= (const short rhs) |
Fixed & | operator *= (const short rhs) |
Fixed & | operator/= (const short rhs) |
Fixed & | operator %= (const short rhs) |
Fixed & | operator+= (const Fixed &rhs) |
Fixed & | operator -= (const Fixed &rhs) |
Fixed & | operator *= (const Fixed &rhs) |
Fixed & | operator/= (const Fixed &rhs) |
Fixed & | operator %= (const Fixed &rhs) |
Fixed | operator+ (const Fixed &rhs) const |
Fixed | operator - (const Fixed &rhs) const |
Fixed | operator * (const Fixed &rhs) const |
Fixed | operator/ (const Fixed &rhs) const |
Fixed | operator % (const Fixed &rhs) const |
Fixed | operator+ (const short rhs) const |
Fixed | operator - (const short rhs) const |
Fixed | operator * (const short rhs) const |
Fixed | operator/ (const short rhs) const |
Fixed | operator % (const short rhs) const |