diff --git a/julia/ImmutableOrientedShape.jl b/julia/ImmutableOrientedShape.jl index e69de29..62b6291 100644 --- a/julia/ImmutableOrientedShape.jl +++ b/julia/ImmutableOrientedShape.jl @@ -0,0 +1,9 @@ +include("Shape.jl") + +struct ImmutableOrientedShape + cubes::List{Tuple{Int8, Int8, Int8}} + hash::UInt +end + +Base.hash(S::ImmutableOrientedShape) = S.hash +Base.hash(S::ImmutableOrientedShape, h::UInt) = S.hash ⊻ h