Transforms
This commit is contained in:
parent
1cd256a12a
commit
421b3b7e05
|
@ -7,6 +7,9 @@ type
|
||||||
Vec3Pair = array[2, Vec3]
|
Vec3Pair = array[2, Vec3]
|
||||||
DumbDistTable = TableRef[int, Vec3Pair]
|
DumbDistTable = TableRef[int, Vec3Pair]
|
||||||
|
|
||||||
|
iterator permuteTransforms(p: Vec3): seq[Vec3] =
|
||||||
|
# TODO:
|
||||||
|
|
||||||
proc dumbDist(a: Vec3, b: Vec3): int =
|
proc dumbDist(a: Vec3, b: Vec3): int =
|
||||||
result = abs(a[0]-b[0]) + abs(a[1]-b[1]) + abs(a[2]-b[2])
|
result = abs(a[0]-b[0]) + abs(a[1]-b[1]) + abs(a[2]-b[2])
|
||||||
# echo &"dumbDist: {result} from {a} to {b}"
|
# echo &"dumbDist: {result} from {a} to {b}"
|
||||||
|
|
Loading…
Reference in a new issue