Add circle_points to Circle and round() to Points

This commit is contained in:
2024-06-11 15:29:57 +02:00
parent 9433503ddd
commit b39c9d13dd
6 changed files with 59 additions and 22 deletions

View File

@@ -26,6 +26,8 @@ class Segment2D:
start (Point2D): Start point of the segment.
end (Point2D): End point of the segment.
overlap (LINE_OVERLAP): Overlap draws additional pixel when changing minor direction. For standard bresenham overlap, choose LINE_OVERLAP_NONE. Can also be LINE_OVERLAP_MAJOR or LINE_OVERLAP_MINOR.
>>> Segment2D(Point2D(0, 0), Point2D(10, 15), 1)
"""
start = start.copy()
end = end.copy()