public class ResultPoint
Encapsulates a point of interest in an image containing a barcode. Typically, this would be the location of a finder pattern or the corner of the barcode, for example.
public ResultPoint(float x,
float y)
Encapsulates a point of interest in an image containing a barcode. Typically, this would be the location of a finder pattern or the corner of the barcode, for example.
public int describeContents()
public float getX()
public float getY()
@JvmStatic
public static void orderBestPatterns(@NotNull
ResultPoint[] patterns)
Orders an array of three ResultPoints in an order A,B,C such that AB is less than AC and BC is less than AC, and the angle between BC and BA is less than 180 degrees.
patterns - array of three ResultPoint to order@JvmStatic
public static float distance(@NotNull
ResultPoint pattern1,
@NotNull
ResultPoint pattern2)
pattern1 - first patternpattern2 - second pattern@JvmStatic
public static float distance(float aX,
float aY,
float bX,
float bY)
aX - point A x coordinateaY - point A y coordinatebX - point B x coordinatebY - point B y coordinate