Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a fixed-point number. More...
#include <omFixed.h>
Public Member Functions | |
Fixed () | |
Fixed (float a) | |
Fixed (double a) | |
Fixed (int a) | |
Fixed (unsigned int a) | |
Fixed (long a) | |
Fixed (unsigned long a) | |
Fixed (long long a) | |
Fixed (unsigned long long a) | |
template<typename T > | |
Fixed & | operator= (T a) |
operator float () const | |
operator double () const | |
operator int () const | |
operator unsigned int () const | |
operator long () const | |
operator unsigned long () const | |
operator long long () const | |
operator unsigned long long () const | |
Bool | operator== (const Fixed &other) const |
Bool | operator!= (const Fixed &other) const |
Bool | operator<= (const Fixed &other) const |
Bool | operator>= (const Fixed &other) const |
Bool | operator< (const Fixed &other) const |
Bool | operator> (const Fixed &other) const |
template<typename T > | |
Bool | operator== (T other) const |
template<typename T > | |
Bool | operator!= (T other) const |
template<typename T > | |
Bool | operator<= (T other) const |
template<typename T > | |
Bool | operator>= (T other) const |
template<typename T > | |
Bool | operator< (T other) const |
template<typename T > | |
Bool | operator> (T other) const |
Fixed | operator+ () const |
Fixed | operator- () const |
Fixed | operator+ (const Fixed &other) const |
Fixed | operator- (const Fixed &other) const |
Fixed | operator* (const Fixed &other) const |
Fixed | operator/ (const Fixed &other) const |
template<typename T > | |
Fixed | operator+ (T value) const |
template<typename T > | |
Fixed | operator- (T value) const |
template<typename T > | |
Fixed | operator* (T value) const |
template<typename T > | |
Fixed | operator/ (T value) const |
Fixed & | operator+= (const Fixed &other) const |
Fixed & | operator-= (const Fixed &other) const |
Fixed & | operator*= (const Fixed &other) const |
Fixed & | operator/= (const Fixed &other) const |
template<typename T > | |
Fixed & | operator+= (T value) const |
template<typename T > | |
Fixed & | operator-= (T value) const |
template<typename T > | |
Fixed & | operator*= (T value) const |
template<typename T > | |
Fixed & | operator/= (T value) const |
data::String | toString () const |
Convert this vector into a human-readable string representation. More... | |
operator data::String () const | |
Convert this vector into a human-readable string representation. More... | |
A class that represents a fixed-point number.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Convert this vector into a human-readable string representation.
|
inline |
Convert this vector into a human-readable string representation.