Esempio n. 1
0
 def _calculate_curr_distance(self):
     self.__curr_distance = Point.distance(self.get_origin(),
                                           self.get_center())
     print("distance " + str(self.__curr_distance))
Esempio n. 2
0
    def contains(self, point):
        distance = Point.distance(point, self.get_center())
        if distance <= self.__radius:
            return True

        return False