示例#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)