def _create_points(self) -> PointList: """ Create a list of points representing this bottle in 2D space. :return: a PointList object. """ return get_circle_points(self.center_x, self.center_y, self.radius)
def _create_points(self, scale) -> PointList: """ Create a list of points representing this Lake in 2D space. :return: a PointList object. """ return get_circle_points(self.x * scale, self.y * scale, self.radius * scale)
def test_get_circle_points_base(self): points = get_circle_points(100, 100, 10) self.assertEqual(len(points), 34)
def test_get_circle_points_diff(self): points = get_circle_points(100, 100, 10, 64) self.assertEqual(len(points), 66)