Fix line type

This commit is contained in:
Alex Clink 2022-03-29 22:55:05 -04:00
parent 6015a255d6
commit 2f65ce7de3

View file

@ -22,7 +22,7 @@ module PF
end end
# Form lines from the points # Form lines from the points
lines = [] of Line(Int32) lines = [] of Line(Vector2(Int32))
0.upto(points.size - 1) do |n| 0.upto(points.size - 1) do |n|
lines << Line.new(points[n], points[(n + 1) % points.size]) lines << Line.new(points[n], points[(n + 1) % points.size])
end end