From c0738a0d7c61a16454399c3ba583b1888487292b Mon Sep 17 00:00:00 2001 From: Maxime Vorwerk Date: Fri, 25 Aug 2023 16:02:16 +0200 Subject: [PATCH] added ImmutableOrientedShapes --- julia/ImmutableOrientedShape.jl | 9 +++++++++ 1 file changed, 9 insertions(+) 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