src/main/java/de/javagl/geom/Rectangles.java
/**
     * Returns the positive remainder of the specified division
     * 
     * @param value The value to divide
     * @param d The value divided by
     * @return The positive remainder
     */
Returns the positive remainder of the specified division

@param value The value to divide
@param d The value divided by
@return The positive remainder
Returns the positive remainder of the specified division @param value The value to divide @param d The value divided by @return The positive remainder
private static int positiveRemainder(int value, int d)
    {
        int result = value % d;
        if (result < 0) 
        {
            return result + d;        
        }
        return result;
    }
private static int positiveRemainder ( int value , int d ) { int result = value % d ; if ( result < 0 ) { return result + d ; } return result ; }
Returns the positive remainder of the specified division
Returns the positive remainder of the specified division