diff options
Diffstat (limited to 'core/fxcrt')
-rw-r--r-- | core/fxcrt/fx_coordinates.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h index a4074a4afa..d84b866a57 100644 --- a/core/fxcrt/fx_coordinates.h +++ b/core/fxcrt/fx_coordinates.h @@ -20,10 +20,7 @@ class CFX_PTemplate { CFX_PTemplate() : x(0), y(0) {} CFX_PTemplate(BaseType new_x, BaseType new_y) : x(new_x), y(new_y) {} CFX_PTemplate(const CFX_PTemplate& other) : x(other.x), y(other.y) {} - void clear() { - x = 0; - y = 0; - } + CFX_PTemplate operator=(const CFX_PTemplate& other) { if (this != &other) { x = other.x; @@ -47,28 +44,12 @@ class CFX_PTemplate { y -= obj.y; return *this; } - CFX_PTemplate& operator*=(BaseType factor) { - x *= factor; - y *= factor; - return *this; - } - CFX_PTemplate& operator/=(BaseType divisor) { - x /= divisor; - y /= divisor; - return *this; - } CFX_PTemplate operator+(const CFX_PTemplate& other) const { return CFX_PTemplate(x + other.x, y + other.y); } CFX_PTemplate operator-(const CFX_PTemplate& other) const { return CFX_PTemplate(x - other.x, y - other.y); } - CFX_PTemplate operator*(BaseType factor) const { - return CFX_PTemplate(x * factor, y * factor); - } - CFX_PTemplate operator/(BaseType divisor) const { - return CFX_PTemplate(x / divisor, y / divisor); - } BaseType x; BaseType y; |