index(for:)

Returns the voxelIndex for the position you provide.

VoxelScale.swift:48
func index(for position: SIMD3<T>) -> VoxelIndex where T : BinaryFloatingPoint

Parameters

position

The position of the point.

Returns

The index of the voxel that contains that point.