com.google.zxing.common.detector
Class MathUtils

java.lang.Object
  extended by com.google.zxing.common.detector.MathUtils

public final class MathUtils
extends Object


Method Summary
static float distance(float aX, float aY, float bX, float bY)
           
static float distance(int aX, int aY, int bX, int bY)
           
static int round(float d)
          Ends up being a bit faster than Math.round(float).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

round

public static int round(float d)
Ends up being a bit faster than Math.round(float). This merely rounds its argument to the nearest int, where x.5 rounds up to x+1.


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)


Copyright © 2007-2012. All Rights Reserved.