ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Class VoxelCordConverter

    Utility class for converting between world coordinates and voxel grid indices.

    Inheritance
    object
    VoxelCordConverter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.