expand(_:)

Expands the bounds by increasing both the maximum and minimum away from the bounds midpoint.

VoxelBounds.swift:97
func expand(_ amount: Int = 1) -> VoxelBounds

Parameters

amount

The amount to expand, default of 1.

Returns

the expanded bounds.