cornerPosition(_:)

Returns the inner corner position in the range output from the voxel index you provide.

VoxelScale.swift:31
func cornerPosition(_ index: VoxelIndex) -> SIMD3<T> where T : BinaryFloatingPoint

Parameters

index

The voxel’s index.

Returns

The inner corner (closest to the origin) of the voxel.