From ba1e2a2c8d2e6e3a0d380ab8778928a3cf6297b8 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Sun, 28 Apr 2024 23:01:18 +0200 Subject: [PATCH] comment on line algo --- gpu.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpu.lua b/gpu.lua index a2622ca..e4426db 100644 --- a/gpu.lua +++ b/gpu.lua @@ -415,6 +415,8 @@ local function runcommand(pos, meta, command) local length = 1 + vector.distance(p1, p2) local dir = vector.direction(p1, p2) local point + -- not the most eficient process for horizontal, vertical + -- or 45 degree lines for i = 0, length, 0.3 do point = vector.add(p1, vector.multiply(dir, i)) point = vector.floor(point)