summaryrefslogtreecommitdiffstats
path: root/tests/libother/number.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libother/number.cpp')
-rw-r--r--tests/libother/number.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libother/number.cpp b/tests/libother/number.cpp
index 0c64def6..61dc3319 100644
--- a/tests/libother/number.cpp
+++ b/tests/libother/number.cpp
@@ -46,3 +46,9 @@ Number::toStr() const
return in.str().c_str();
}
+Point
+operator*(const Point& p, const Number& n)
+{
+ return Point(p.x() * n.value(), p.y() * n.value());
+}
+