aboutsummaryrefslogtreecommitdiff
path: root/angleclass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'angleclass.cpp')
-rw-r--r--angleclass.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/angleclass.cpp b/angleclass.cpp
index e1981d1..8f30d69 100644
--- a/angleclass.cpp
+++ b/angleclass.cpp
@@ -52,58 +52,58 @@ void angleclass::setval(const double setme)
value=shiftinrange(setme);
}
-double angleclass::getval()
+double angleclass::getval() const
{
return(value);
}
-angleclass angleclass::operator *(angleclass other)
+angleclass angleclass::operator *(const angleclass other) const
{
- return(angleclass(value*other.getval()));
+ return(angleclass(value*other.value));
}
-angleclass angleclass::operator-(angleclass other)
+angleclass angleclass::operator-(const angleclass other) const
{
- return(angleclass(value-other.getval()));
+ return(angleclass(value-other.value));
}
-angleclass angleclass::operator+(angleclass other)
+angleclass angleclass::operator+(const angleclass other) const
{
- return(angleclass(value+other.getval()));
+ return(angleclass(value+other.value));
}
-angleclass angleclass::operator/(angleclass other)
+angleclass angleclass::operator/(const angleclass other) const
{
- return(angleclass(value/other.getval()));
+ return(angleclass(value/other.value));
}
-bool angleclass::operator<(angleclass other)
+bool angleclass::operator<(const angleclass other) const
{
- return(value<other.getval());
+ return(value<other.value);
}
-bool angleclass::operator>(angleclass other)
+bool angleclass::operator>(const angleclass other) const
{
- return(value>other.getval());
+ return(value>other.value);
}
-bool angleclass::operator<=(angleclass other)
+bool angleclass::operator<=(const angleclass other) const
{
- return(value<=other.getval());
+ return(value<=other.value);
}
-bool angleclass::operator>=(angleclass other)
+bool angleclass::operator>=(const angleclass other) const
{
- return(value>=other.getval());
+ return(value>=other.value);
}
-bool angleclass::operator==(angleclass other)
+bool angleclass::operator==(const angleclass other) const
{
- return(value==other.getval());
+ return(value==other.value);
}
-bool angleclass::operator!=(angleclass other)
+bool angleclass::operator!=(const angleclass other) const
{
- return(value!=other.getval());
+ return(value!=other.value);
}