Add grid generation

This commit is contained in:
2024-06-16 04:49:41 +02:00
parent 1329e442d2
commit 2fa3aeba1d
21 changed files with 174 additions and 44 deletions

View File

@@ -22,6 +22,8 @@ class Segment3D:
>>> Segment3D(Point3D(0, 0, 0), Point3D(10, 10, 15))
"""
start = self.start.copy()
end = self.end.copy()
self.output_points.append(start.copy())
dx = abs(self.end.x - self.start.x)
dy = abs(self.end.y - self.start.y)