cell

fun cell(query: Vector3): Cell3D?(source)

Retrieves the 3D cell corresponding to the given query point in the spatial hash grid.

This method computes the grid coordinates of the query vector and attempts to fetch the corresponding cell from the internal cell mapping.

Return

A Cell3D object if a cell exists for the given query point, or null if no such cell is found.

Parameters

query

A Vector3 object representing the point used to locate the corresponding cell.