public static class ResultPoint.Companion
@JvmStatic
public 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 float distance(@NotNull
ResultPoint pattern1,
@NotNull
ResultPoint pattern2)
pattern1 - first patternpattern2 - second pattern@JvmStatic
public 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