From a81cc0073a60ad0435af3d4964fc1ba8f8e96e9f Mon Sep 17 00:00:00 2001 From: spatialfree Date: Sun, 10 Nov 2024 05:08:57 -0500 Subject: [PATCH] stash inset cell function away --- src/Mono.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Mono.cs b/src/Mono.cs index 9d31865..6afa12c 100644 --- a/src/Mono.cs +++ b/src/Mono.cs @@ -298,4 +298,14 @@ static class Mono new XYZi(+1, +1, -1), new XYZi(+1, +1, +1) }; + + static XYZi InsetCell(XYZi cell) + { + // [!] don't inset past 0 + return new( + cell.x - Maths.sign(cell.x), + cell.y - Maths.sign(cell.y), + cell.z - Maths.sign(cell.z) + ); + } }