RoundingUtils
Added in 1.0.0-alpha05
public final class RoundingUtils
Summary
Public methods |
|
|---|---|
static final int |
roundDownToNearestMultipleOf(int receiver, int boundary) |
static final long |
roundDownToNearestMultipleOf(long receiver, int boundary)Helpers for image dimension management. |
static final int |
roundUpToNearestMultipleOf(int receiver, int boundary) |
static final long |
roundUpToNearestMultipleOf(long receiver, int boundary) |
Public methods
roundDownToNearestMultipleOf
public static final int roundDownToNearestMultipleOf(int receiver, int boundary)
roundDownToNearestMultipleOf
public static final long roundDownToNearestMultipleOf(long receiver, int boundary)
Helpers for image dimension management. Each adds a method to round to the next higher or lower multiple of a value, e.g., "round -1,234 down to the nearest multiple of 1,000" returns -2000.
roundUpToNearestMultipleOf
public static final int roundUpToNearestMultipleOf(int receiver, int boundary)
roundUpToNearestMultipleOf
public static final long roundUpToNearestMultipleOf(long receiver, int boundary)