aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-17 21:16:36 -0400
committerMatthew Hoops2011-09-17 21:16:36 -0400
commite90287f7f1063e9784239c5be558b7fb6cd3aa54 (patch)
treed54c2ec846d51e35d565f7db18539418dde5a6df
parent331da0377b1baa82e7e10034cfe8655d8a7d9f31 (diff)
downloadscummvm-rg350-e90287f7f1063e9784239c5be558b7fb6cd3aa54.tar.gz
scummvm-rg350-e90287f7f1063e9784239c5be558b7fb6cd3aa54.tar.bz2
scummvm-rg350-e90287f7f1063e9784239c5be558b7fb6cd3aa54.zip
COMMON: Add numerator/denominator getters for Rational
-rw-r--r--common/rational.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/rational.h b/common/rational.h
index 45aa6a7a20..8270d2194e 100644
--- a/common/rational.h
+++ b/common/rational.h
@@ -80,6 +80,9 @@ public:
double toDouble() const;
frac_t toFrac() const;
+ int getNumerator() const { return _num; }
+ int getDenominator() const { return _denom; }
+
void debugPrint(int debuglevel = 0, const char *caption = "Rational:") const;
private: