This commit is contained in:
Maxime Vorwerk
2023-08-29 14:53:25 +02:00
parent 6ecf660cde
commit d836aa5c1a
9 changed files with 352 additions and 85 deletions

View File

@@ -1,11 +1,10 @@
include("Shape.jl")
using XXhash
struct ImmutableOrientedShape
cubes::Vector{Tuple{Int8, Int8, Int8}}
cubes::Vector{Tuple{Int64, Int64, Int64}}
hash::UInt
end
function getImmutableOrientedShape(S::Shape)
shape = ImmutableOrientedShape(S.orderedLists[1], xxh3_64(S.orderedLists[1]))
shape = ImmutableOrientedShape(S.orderedLists[1], hashList(S.orderedLists[1]))
end