Exemple #1
0
    def get_points(self):
        start = (50, 50)
        points = [start]

        next_point = find_point(start, 0, self._side1)
        points.append(next_point)

        next_point = find_point(next_point, 180 - self._degree, self._side2)
        points.append(next_point)

        return points
Exemple #2
0
    def get_points(self):
        start = (50, 50)
        points = [start]

        next_point = find_point(start, 0, self._length)
        points.append(next_point)

        next_point = find_point(next_point, 120, self._length)
        points.append(next_point)

        return points
Exemple #3
0
	def get_points(self):
		start = (100, 100)
		points = [start]

		next_point = find_point(start, self._angle, 100)
		points.append(next_point)

		next_point = find_point(next_point, 1.5 * self._angle, 150)
		points.append(next_point)

		points.append((-100, -100))
		points.append((0, 100))

		return points
Exemple #4
0
    def get_points(self):

        start = (50, 50)
        points = [start]

        next_point = find_point(start, 0, self._shortside)
        points.append(next_point)

        next_point = find_point(next_point, 90, self._longside)
        points.append(next_point)

        next_point = find_point(next_point, 180, self._shortside)
        points.append(next_point)

        next_point = find_point(next_point, 270, self._longside)
        points.append(next_point)

        return points