Package games.stendhal.common.math
Class Numeric
java.lang.Object
games.stendhal.common.math.Numeric
Convert between float and int values using the given accuracy as multiplier.
- Author:
- silvio
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
floatToInt(float value, float accuracy)
static float
intToFloat(int value, float accuracy)
-
Constructor Details
-
Numeric
public Numeric()
-
-
Method Details
-
floatToInt
public static int floatToInt(float value, float accuracy) -
intToFloat
public static float intToFloat(int value, float accuracy)
-