base/common/src/main/com/thesett/common/util/doublemaps/HashMapXY.java
private int mod(long c, int bucketSize)
    {
        return (int) ((c < 0) ? ((bucketSize + (c % bucketSize)) % bucketSize) : (c % bucketSize));
    }
private int mod(long c, int bucketSize)
    {
        return (int) ((c < 0) ? ((bucketSize + (c % bucketSize)) % bucketSize) : (c % bucketSize));
    }
private int mod ( long c , int bucketSize ) { return ( int ) ( ( c < 0 ) ? ( ( bucketSize + ( c % bucketSize ) ) % bucketSize ) : ( c % bucketSize ) ) ; }
Calculates the modulo of a coordinate with the bucket size. Correctly calculates this module for negative
coordinates such the the first negative bucket is -1 with element 0 corresponding to -100 running to 99
corresponding to -1.

@param  c          The coordinate value.
@param  bucketSize The bucket size.

@return The coordinate offset into the bucket modulo the bucket size.
Calculates the modulo of a coordinate with the bucket size . Correctly calculates this module for negative coordinates such the the first negative bucket is - 1 with element 0 corresponding to - 100 running to 99 corresponding to - 1 .