public class ResultPoint
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ResultPoint> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
|
ResultPoint(float x,
float y) |
protected |
ResultPoint(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
static float |
distance(float aX,
float aY,
float bX,
float bY) |
static float |
distance(ResultPoint pattern1,
ResultPoint pattern2) |
boolean |
equals(java.lang.Object other) |
float |
getX() |
float |
getY() |
int |
hashCode() |
static void |
orderBestPatterns(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.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<ResultPoint> CREATOR
public ResultPoint(float x,
float y)
protected ResultPoint(android.os.Parcel in)
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic final float getX()
public final float getY()
public final boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Objectpublic static void orderBestPatterns(ResultPoint[] patterns)
patterns - array of three ResultPoint to orderpublic static float distance(ResultPoint pattern1, ResultPoint pattern2)
pattern1 - first patternpattern2 - second patternpublic 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