Table of Contents

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

TVolume

The 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

bounds TVolume

The volume to map into cell space.

minCell SwiftSpatialHashCellIndex

The minimum occupied cell coordinate.

maxCell SwiftSpatialHashCellIndex

The maximum occupied cell coordinate.