Package com.google.zxing.common.detector
Class MathUtils
- java.lang.Object
-
- com.google.zxing.common.detector.MathUtils
-
public final class MathUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static floatdistance(float aX, float aY, float bX, float bY)static floatdistance(int aX, int aY, int bX, int bY)static intround(float d)Ends up being a bit faster thanMath.round(float).
-
-
-
Method Detail
-
round
public static int round(float d)
Ends up being a bit faster thanMath.round(float). This merely rounds its argument to the nearest int, where x.5 rounds up to x+1.- Parameters:
d- real value to round- Returns:
- nearest
int
-
distance
public static float distance(float aX, float aY, float bX, float bY)
-
distance
public static float distance(int aX, int aY, int bX, int bY)
-
-