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:
parent
1300c56f0d
commit
68bef2fbf3
3 changed files with 52 additions and 0 deletions
|
|
@ -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);
|
||||
///@}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue