Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static int | div (final int numerator, final int denominator) |
static int | divRound (final int numerator, final int denominator) |
static int | divRoundUp (final int numerator, final int denominator) |
static int | mod (final int numerator, final int denominator) |
Private Member Functions | |
MathUtils () | |
Utility class for mathematical functions.
Definition at line 29 of file MathUtils.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 34 of file MathUtils.java.
|
static |
Calculates \floor(
).
numerator | the numerator |
denominator | the denominator |
Definition at line 43 of file MathUtils.java.
|
static |
Returns the quotient of two values, rounded to the nearest integer.
numerator | the numerator |
denominator | the denominator |
Definition at line 80 of file MathUtils.java.
Referenced by com.realtime.crossfire.jxclient.gui.item.ItemPainter.paint().
|
static |
Returns the quotient of two values, rounded up to the nearest integer.
numerator | the numerator |
denominator | the denominator |
Definition at line 67 of file MathUtils.java.
Referenced by com.realtime.crossfire.jxclient.gui.map.GUIMap.getPreferredMapHeight(), com.realtime.crossfire.jxclient.gui.map.GUIMap.getPreferredMapWidth(), and com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap.setMapSize().
|
static |
Calculates the remainder of
.
numerator | the numerator |
denominator | the denominator |
Definition at line 56 of file MathUtils.java.
Referenced by com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap.setMapSize().