aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/pointf.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/pointf.h')
-rw-r--r--tests/libsample/pointf.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/libsample/pointf.h b/tests/libsample/pointf.h
index 832c3b32..f5ad1165 100644
--- a/tests/libsample/pointf.h
+++ b/tests/libsample/pointf.h
@@ -41,8 +41,13 @@ public:
inline void setX(double x) { m_x = x; }
inline void setY(double y) { m_y = y; }
+ // This method could simply return the midpoint,
+ // but the interesting part of the test is to set the
+ // result in the pointer argument.
+ void midpoint(const PointF& other, PointF* midpoint) const;
+
// The != operator is not implemented for the purpose of testing
- // for the absense of the __ne__ method in the Python binding.
+ // for the absence of the __ne__ method in the Python binding.
bool operator==(const PointF& other);
PointF operator+(const PointF& other);
@@ -75,4 +80,3 @@ LIBSAMPLE_API bool operator!(const PointF& pt);
LIBSAMPLE_API PointF operator*(const PointF& pt, double multiplier);
#endif // POINTF_H
-