<gh_stars>1-10
from __future__ import division, print_function, absolute_import

from math import sqrt


class Point(object):
    def __init__(self, x, y, s = 0, rad = 0):
        self.s = s
        self.x = x
        self.y = y
        self.rad = rad
        self.z = 0

    def distance(self, other):
        return sqrt((self.x - other.x) ** 2 + (self.y - other.y) ** 2)


class EndPoint(Point):
    def __init__(self, x, y, id, contact_point):
        super(EndPoint, self).__init__(x, y)
        self.id = id
        self.contact_point = contact_point



from __future__ import division, print_function, absolute_import

from math import sqrt


class Point(object):
    def __init__(self, x, y, s = 0, rad = 0):
        self.s = s
        self.x = x
        self.y = y
        self.rad = rad
        self.z = 0

    def distance(self, other):
        return sqrt((self.x - other.x) ** 2 + (self.y - other.y) ** 2)


class EndPoint(Point):
    def __init__(self, x, y, id, contact_point):
        super(EndPoint, self).__init__(x, y)
        self.id = id
        self.contact_point = contact_point