aboutsummaryrefslogtreecommitdiff
path: root/angleclass.h
diff options
context:
space:
mode:
Diffstat (limited to 'angleclass.h')
-rw-r--r--angleclass.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/angleclass.h b/angleclass.h
index 5b2e99e..8135c0a 100644
--- a/angleclass.h
+++ b/angleclass.h
@@ -39,19 +39,19 @@ public:
angleclass(const double setme);
void setval(const double setme);
- double getval();
+ double getval() const;
- angleclass operator+(angleclass other);
- angleclass operator-(angleclass other);
- angleclass operator*(angleclass other);
- angleclass operator/(angleclass other);
+ angleclass operator+(const angleclass other) const;
+ angleclass operator-(const angleclass other) const;
+ angleclass operator*(const angleclass other) const;
+ angleclass operator/(const angleclass other) const;
//beware: these only compare the numeric value of the angle.
- bool operator<(angleclass other);
- bool operator>(angleclass other);
- bool operator<=(angleclass other);
- bool operator>=(angleclass other);
- bool operator==(angleclass other);
- bool operator!=(angleclass other);
+ bool operator<(const angleclass other) const;
+ bool operator>(const angleclass other) const;
+ bool operator<=(const angleclass other) const;
+ bool operator>=(const angleclass other) const;
+ bool operator==(const angleclass other) const;
+ bool operator!=(const angleclass other) const;
};
#endif // ANGLECLASS_H