Interface ISpatialHashCellMapper<TVolume>
- Namespace
- SwiftCollections.Query
- Assembly
- SwiftCollections.dll
Maps a query volume to the inclusive cell range occupied by that volume.
public interface ISpatialHashCellMapper<TVolume> where TVolume : struct, IBoundVolume<TVolume>
Type Parameters
TVolumeThe volume type used by the spatial hash.
Methods
GetCellRange(TVolume, out SwiftSpatialHashCellIndex, out SwiftSpatialHashCellIndex)
Calculates the inclusive minimum and maximum occupied cell coordinates for the supplied volume.
void GetCellRange(TVolume bounds, out SwiftSpatialHashCellIndex minCell, out SwiftSpatialHashCellIndex maxCell)
Parameters
boundsTVolumeThe volume to map into cell space.
minCellSwiftSpatialHashCellIndexThe minimum occupied cell coordinate.
maxCellSwiftSpatialHashCellIndexThe maximum occupied cell coordinate.