Class VoxelCordConverter
Utility class for converting between world coordinates and voxel grid indices.
Inherited Members
Namespace: ZLab.Discrete.Grids
Assembly: ZLab.Discrete.dll
Syntax
public static class VoxelCordConverter
Methods
| Name | Description |
|---|---|
| VoxelIndexToWorldMaxCorner(int, int, int, Vector3) | Converts voxel grid index to world position of its maximum corner. |
| VoxelIndexToWorldMaxCorner(int, int, int, Vector3, Vector3) | Converts voxel grid index to world position of its maximum corner with custom grid origin. |
| VoxelIndexToWorldMinCorner(int, int, int, Vector3) | Converts voxel grid index to world position of its minimum corner. |
| VoxelIndexToWorldMinCorner(int, int, int, Vector3, Vector3) | Converts voxel grid index to world position of its minimum corner with custom grid origin. |
| WorldToVoxelIndex(Vector3, Vector3) | Converts world position to voxel grid index. Use for normal coordinate conversion. |
| WorldToVoxelIndex(Vector3, Vector3, Vector3) | Converts world position to voxel grid index with custom grid origin. Use for normal coordinate conversion. |
| WorldToVoxelIndex(float, float, float, in Vector3) | Converts world position to voxel grid index. Use for normal coordinate conversion. |
| WorldToVoxelIndexInclusive(Vector3, Vector3) | Converts world position to voxel grid index for bounding box maximum coordinates. Use for inclusive bounds. |
| WorldToVoxelIndexInclusive(Vector3, Vector3, Vector3) | Converts world position to voxel grid index for bounding box maximum coordinates with custom grid origin. Use for inclusive bounds. |