public class Gesture
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Gesture(java.lang.String name)
Instantiates a new gesture.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(com.jme3.math.Vector2f p)
Adds the point.
|
float |
compareTo(Gesture g)
Compare to.
|
static float |
dotProduct(Gesture a,
Gesture b)
Dot product.
|
float |
getHeight()
Gets the height.
|
java.lang.String |
getName()
Gets the name.
|
com.jme3.math.Vector2f |
getPoint(int index)
Gets the point.
|
float |
getWidth()
Gets the width.
|
static void |
main(java.lang.String[] args)
The main method.
|
static float |
match(Gesture a,
Gesture b)
Match.
|
void |
normalizeCenter()
Normalize center.
|
Gesture |
normalizeResolution(int numPoints)
Normalize resolution.
|
void |
normalizeSize()
Normalize size.
|
int |
numPoints()
Num points.
|
void |
setPoint(int index,
com.jme3.math.Vector2f v)
Sets the point.
|
static void |
testMatching()
Test matching.
|
java.lang.String |
toString() |
static void |
writeCircleLine()
Write circle line.
|
public Gesture(java.lang.String name)
name - the namepublic static float dotProduct(Gesture a, Gesture b)
a - the ab - the bpublic static void main(java.lang.String[] args)
args - the argumentspublic static float match(Gesture a, Gesture b)
a - the ab - the bpublic static void testMatching()
public static void writeCircleLine()
public void addPoint(com.jme3.math.Vector2f p)
p - the ppublic float compareTo(Gesture g)
g - the gpublic float getHeight()
public java.lang.String getName()
public com.jme3.math.Vector2f getPoint(int index)
index - the indexpublic float getWidth()
public void normalizeCenter()
public Gesture normalizeResolution(int numPoints)
numPoints - the num pointspublic void normalizeSize()
public int numPoints()
public void setPoint(int index,
com.jme3.math.Vector2f v)
index - the indexv - the vpublic java.lang.String toString()
toString in class java.lang.Object