import math

class Point:
    def __init__(self, x=0, y=0):
        self.x = float(x)
        self.y = float(y)
    def __str__(self):
        return '<' + str(self.x) + ', ' + str(self.y) +'>'
    def printIt(self):
        print str(self)
    def setPoint(self, x, y):
        self.x = float(x)
        self.y = float(y)
    def movePoint(self, x, y):
        self.x += x
        self.y += y
    def copyPoint(self):
        newPoint = Point(self.x, self.y)
        return newPoint
    def __add__(self, p):
        return Point(self.x + p.x, self.y + p.y)
    def equiv(self, p2):
        return self.x == p2.x and self.y == p2.y
    def distanceBetween(self, p2):
        xDist = self.x - p2.x
        yDist = self.y - p2.y
        dist = math.sqrt(xDist**2 + yDist**2)
        return dist

