From 421b3b7e0551cc03d2c38d13b557d059e79afc8f Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 21 Dec 2021 09:29:41 -0600 Subject: [PATCH] Transforms --- 2021/nim/day19.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/2021/nim/day19.nim b/2021/nim/day19.nim index f38c312..47994c9 100644 --- a/2021/nim/day19.nim +++ b/2021/nim/day19.nim @@ -7,6 +7,9 @@ type Vec3Pair = array[2, Vec3] DumbDistTable = TableRef[int, Vec3Pair] +iterator permuteTransforms(p: Vec3): seq[Vec3] = + # TODO: + proc dumbDist(a: Vec3, b: Vec3): int = result = abs(a[0]-b[0]) + abs(a[1]-b[1]) + abs(a[2]-b[2]) # echo &"dumbDist: {result} from {a} to {b}"