locToBlock

public static int locToBlock(double loc)

Safely converts double (location coordinate) to an int (block coordinate)

Return

Block coordinate

Parameters

loc

Precise coordinate