Nez.Portable/Physics/SpatialHash.cs
/// <summary>
/// gets the cell x,y values for a world-space x,y value
/// </summary>
/// <returns>The coords.</returns>
/// <param name="x">The x coordinate.</param>
/// <param name="y">The y coordinate.</param>
gets the cell x,y values for a world-space x,y value
gets the cell x y values for a world - space x y value
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        Point cellCoords(int x, int y)
        {
            return new Point(Mathf.floorToInt(x * _inverseCellSize), Mathf.floorToInt(y * _inverseCellSize));
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] Point cellCoords ( int x , int y ) { return new Point ( Mathf . floorToInt ( x * _inverseCellSize ) , Mathf . floorToInt ( y * _inverseCellSize ) ) ; }
gets the cell x,y values for a world-space x,y value
gets the cell x y values for a world - space x y value
None
x
int
The x coordinate.
The x coordinate .
y
int
The y coordinate.
The y coordinate .