|
AUI Framework
master
Cross-platform base for C++ UI apps
|
#include <AUI/Util/AFraction.h>
Public Member Functions# | |
| AFraction (int numerator, int denominator) | |
| AFraction (int number) | |
| AFraction & | operator+= (int number) |
| AFraction | operator+ (int number) const |
| AFraction & | operator-= (int number) |
| AFraction | operator- (int number) const |
| AFraction & | operator*= (int number) |
| AFraction | operator* (int number) const |
| AFraction & | operator/= (int number) |
| AFraction | operator/ (int number) const |
| int | toInt () const |
| float | toFloat () const |
| double | toDouble () const |
Simple Math's fraction consisting of two integers, allowing to perform high-precision calculations without FPU.