adding(_:_:_:)

Returns a new voxel index offset from the current by the axis-aligned index values you provide.

VoxelIndex.swift:72
func adding(_ x: Int, _ y: Int, _ z: Int) -> VoxelIndex

Parameters

x

The distance in the X direction.

y

The distance in the Y direction.

z

The distance in the Z direction.

A convenience function for shifting a VoxelIndex so that you don’t have to create a new relative VoxelIndex to use with adding(_:).