Put wxRealPoint operators in the same order as wxPoint ones
This commit is contained in:
parent
11c3034177
commit
1300c56f0d
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue