Instance Methodheckj.voxels 0.2.6Voxels
index(after:)
VoxelBounds+Collection.swift:4func index(after i: Int) -> Int func index(after i: Int) -> Int import VoxelsA Swift library for storage, manipulation, export, and 3D rendering of Voxel data.
struct VoxelBoundsThe coordinate bounds of a set of voxels.
@frozen struct IntA signed integer value type.
init(_ seqOfIndex: [VoxelIndex]) init(_ only: VoxelIndex) init(min: [Int], max: [Int]) init(min: (Int, Int, Int), max: (Int, Int, Int)) init(min: VoxelIndex, max: VoxelIndex) static let empty: VoxelBoundsvar description: String { get }var endIndex: Int { get }let max: VoxelIndexlet min: VoxelIndexvar size: Int { get }var startIndex: Int { get }subscript(index: Int) -> VoxelIndex { get } func _unchecked_delinearize(_ strideIndex: Int) -> VoxelIndex func _unchecked_linearize(_ vi: VoxelIndex) -> Int func adding(_ newPoint: VoxelIndex) -> VoxelBounds func contains(_ point: VoxelIndex) -> Bool func contains(_ bounds: VoxelBounds) -> Bool func delinearize(_ strideIndex: Int) throws -> VoxelIndex func expand(_ amount: Int = 1) -> VoxelBounds Expands the bounds by increasing both the maximum and minimum away from the bounds midpoint.
func insetQuadrant(_ amount: Int = 1) -> VoxelBounds Insets the bounds by decreasing the maximum size by the amount you provide, collapsing down to the minimum bounds.
func linearize(_ vi: VoxelIndex) throws -> Int func makeIterator() -> VoxelBoundsIterator func x(_ range: ClosedRange<Int>) -> VoxelBounds Returns the intersection of the bounds sliced along the X axis.
func y(_ range: ClosedRange<Int>) -> VoxelBounds Returns the intersection of the bounds sliced along the Y axis.
func z(_ range: ClosedRange<Int>) -> VoxelBounds Returns the intersection of the bounds sliced along the Z axis.
struct VoxelBoundsIteratortypealias Index = Inttypealias Iterator = VoxelBoundsIterator