stash inset cell function away

This commit is contained in:
ethan merchant 2024-11-10 05:08:57 -05:00
parent 5b0a096502
commit a81cc0073a

View file

@ -298,4 +298,14 @@ static class Mono
new XYZi(+1, +1, -1), new XYZi(+1, +1, -1),
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)
);
}
} }