From 356efaf89afdad141b313767e1a2b89de3c08d0a Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 6 Apr 2008 13:29:03 +0000 Subject: zoomedit: Recreated ZoomEdit based on Glademm. --- Vertex.cpp | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 Vertex.cpp (limited to 'Vertex.cpp') diff --git a/Vertex.cpp b/Vertex.cpp deleted file mode 100644 index 6e1f26b..0000000 --- a/Vertex.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include "Vertex.h" -#include - -float Vertex::distanceSq(const Vertex &v) const { - return (x - v.x)*(x - v.x) + (y - v.y)*(y - v.y); -} - -float Vertex::distance(const Vertex &v) const { - return sqrtf(distanceSq(v)); -} - - -Vertex Vertex::operator+(const Vertex &v) const { - return Vertex(x + v.x, y + v.y); -} - -Vertex Vertex::operator-(const Vertex &v) const { - return Vertex(x - v.x, y - v.y); -} - -Vertex Vertex::operator*(float f) const { - return Vertex(x*f, y*f); -} - -Vertex Vertex::operator/(float f) const { - return Vertex(x/f, y/f); -} - -Vertex& Vertex::operator+=(const Vertex &v) { - x += v.x; - y += v.y; - - return *this; -} - -Vertex& Vertex::operator-=(const Vertex &v) { - x -= v.x; - y -= v.y; - - return *this; -} - -Vertex& Vertex::operator*=(float f) { - x *= f; - y *= f; - - return *this; -} - -Vertex& Vertex::operator/=(float f) { - x /= f; - y /= f; - - return *this; -} -- cgit v1.2.3