Class GridTraversal
Provides deterministic helpers for duplicate-safe voxel traversal.
public static class GridTraversal
- Inheritance
-
GridTraversal
- Inherited Members
Methods
IsPlanarPositionInPaddedBounds(Vector2d, Vector2d, Fixed64, Vector3d)
Tests whether a world position's X/Z projection lies inside bounds expanded by half of a cell edge.
public static bool IsPlanarPositionInPaddedBounds(Vector2d min, Vector2d max, Fixed64 cellEdge, Vector3d worldPosition)
Parameters
minVector2dmaxVector2dcellEdgeFixed64worldPositionVector3d
Returns
IsWorldPositionInPaddedBounds(Vector3d, Vector3d, Fixed64, Vector3d)
Tests whether a 3D world position lies inside bounds expanded by half of a cell edge.
public static bool IsWorldPositionInPaddedBounds(Vector3d min, Vector3d max, Fixed64 cellEdge, Vector3d worldPosition)
Parameters
minVector3dmaxVector3dcellEdgeFixed64worldPositionVector3d
Returns
TryGetUniquePartition<TPartition>(Voxel, SwiftHashSet<WorldVoxelIndex>, out TPartition?)
Gets a voxel partition once per exact world-scoped voxel identity.
public static bool TryGetUniquePartition<TPartition>(Voxel voxel, SwiftHashSet<WorldVoxelIndex> visited, out TPartition? partition) where TPartition : class, IVoxelPartition
Parameters
voxelVoxelvisitedSwiftHashSet<WorldVoxelIndex>partitionTPartition
Returns
Type Parameters
TPartition