Put wxRealPoint operators in the same order as wxPoint ones

This commit is contained in:
David Miguel Susano Pinto 2024-01-04 01:30:17 +00:00 committed by Vadim Zeitlin
parent 11c3034177
commit 1300c56f0d
2 changed files with 6 additions and 6 deletions

View file

@ -580,6 +580,11 @@ inline wxRealPoint operator*(unsigned long i, const wxRealPoint& p)
return wxRealPoint(p.x * i, p.y * i);
}
inline wxRealPoint operator/(const wxRealPoint& p, double f)
{
return wxRealPoint(p.x / f, p.y / f);
}
inline wxRealPoint operator*(const wxRealPoint& p, double f)
{
return wxRealPoint(p.x * f, p.y * f);
@ -590,11 +595,6 @@ inline wxRealPoint operator*(double f, const wxRealPoint& p)
return wxRealPoint(p.x * f, p.y * f);
}
inline wxRealPoint operator/(const wxRealPoint& p, double f)
{
return wxRealPoint(p.x / f, p.y / f);
}
// ----------------------------------------------------------------------------
// wxPoint: 2D point with integer coordinates

View file

@ -235,9 +235,9 @@ public:
wxRealPoint& operator /=(int divisor);
wxRealPoint& operator *=(int factor);
wxRealPoint operator /(const wxRealPoint& pt, double divisor);
wxRealPoint operator *(const wxRealPoint& pt, double factor);
wxRealPoint operator *(double factor, const wxRealPoint& pt);
wxRealPoint operator /(const wxRealPoint& pt, double divisor);
///@}
/**