This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
Generated
+13
@@ -0,0 +1,13 @@
|
||||
struct LidarScan(Copyable):
|
||||
var near_points: Int
|
||||
|
||||
def __init__(out self, near_points: Int, far_points: Int):
|
||||
self.near_points = near_points
|
||||
|
||||
def total(self) -> Int:
|
||||
return self.near_points + self.far_points
|
||||
|
||||
|
||||
def main():
|
||||
var scan = LidarScan(8, 256)
|
||||
print("Total points:", scan.total())
|
||||
Reference in new issue
Block a user