Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
    def test_get_circle_points_base(self):
        points = get_circle_points(100, 100, 10)

        self.assertEqual(len(points), 34)
Пример #4
0
    def test_get_circle_points_diff(self):
        points = get_circle_points(100, 100, 10, 64)

        self.assertEqual(len(points), 66)