diff options
author | Matthew Stewart | 2018-07-19 04:39:57 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | 565bf0e96750588e8a7f6816e79683e97896f8de (patch) | |
tree | 6d8e0c8ba093937227f073999c587945be2646ab /engines/startrek/fixedint.h | |
parent | 2b09f698ed47942d84e6c7f503901941116db328 (diff) | |
download | scummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.tar.gz scummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.tar.bz2 scummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.zip |
STARTREK: atan2 function
Diffstat (limited to 'engines/startrek/fixedint.h')
-rw-r--r-- | engines/startrek/fixedint.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/startrek/fixedint.h b/engines/startrek/fixedint.h index cae9efdb94..2ea6400127 100644 --- a/engines/startrek/fixedint.h +++ b/engines/startrek/fixedint.h @@ -122,6 +122,31 @@ public: bool operator<=(double d) const { return toDouble() <= d; } + bool operator>(double d) const { + return toDouble() > d; + } + bool operator>=(double d) const { + return toDouble() >= d; + } + + bool operator==(const TFixedInt &f) const { + return val == f.val; + } + bool operator!=(const TFixedInt &f) const { + return val != f.val; + } + bool operator<(const TFixedInt &f) const { + return val < f.val; + } + bool operator<=(const TFixedInt &f) const { + return val <= f.val; + } + bool operator>(const TFixedInt &f) const { + return val > f.val; + } + bool operator>=(const TFixedInt &f) const { + return val >= f.val; + } void saveLoadWithSerializer(Common::Serializer &ser) { if (totalBits == 16) |