Add compound operators * and / to wxPoint and wxRealPoint

Also add unit tests for them as well as for the existing additive
compound operators.
This commit is contained in:
David Miguel Susano Pinto 2024-01-04 02:08:41 +00:00 committed by Vadim Zeitlin
parent 1300c56f0d
commit 68bef2fbf3
3 changed files with 52 additions and 0 deletions

View file

@ -238,6 +238,8 @@ public:
wxRealPoint operator /(const wxRealPoint& pt, double divisor);
wxRealPoint operator *(const wxRealPoint& pt, double factor);
wxRealPoint operator *(double factor, const wxRealPoint& pt);
wxRealPoint& operator /=(double divisor);
wxRealPoint& operator *=(double factor);
///@}
/**
@ -748,6 +750,8 @@ public:
wxPoint operator /(const wxPoint& pt, double divisor);
wxPoint operator *(const wxPoint& pt, double factor);
wxPoint operator *(double factor, const wxPoint& pt);
wxPoint& operator /=(double divisor);
wxPoint& operator *=(double factor);
///@}