src/AnvilPacker/Level/Physics/VoxelShape.cs
/// <summary> Checks whether the shape completely covers the specified axis. </summary>
Checks whether the shape completely covers the specified axis.
Checks whether the shape completely covers the specified axis .
public static bool FullyOccludesAxis(VoxelShape shape, Axis axis)
        {
            var bmp = stackalloc ushort[16];
            Unsafe.InitBlock(bmp, 0, 16);
            foreach (var box in shape.Boxes) {
                RasterizePlane(box, bmp, axis);
            }
            return AllBitsSet256(bmp);
        }
public static bool FullyOccludesAxis ( VoxelShape shape , Axis axis ) { var bmp = stackalloc ushort [ 16 ] ; Unsafe . InitBlock ( bmp , 0 , 16 ) ; foreach ( var box in shape . Boxes ) { RasterizePlane ( box , bmp , axis ) ; } return AllBitsSet256 ( bmp ) ; }
Checks whether the shape completely covers the specified axis.
Checks whether the shape completely covers the specified axis .
shape
VoxelShape
axis
Axis