Instance Methodheckj.voxels 0.2.6Voxels
index(for:)
Returns the voxelIndex for the position you provide.
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.