Instance Methodheckj.voxels 0.2.6Voxels
centroidPosition(_:)
Returns the centroid position in the range output from the voxel index you provide.
func centroidPosition(_ index: VoxelIndex) -> SIMD3<T> where T : BinaryFloatingPoint
Parameters
- index
The voxel’s index.
Returns
The position of the center of the voxel.