Page Summary
-
Ink.Pointrepresents a single touch point with horizontal and vertical coordinates. -
New points can be created using the
createmethod with or without specifying a timestamp. -
The
getTimestamp,getX, andgetYmethods provide access to the time recorded, horizontal coordinate, and vertical coordinate of the point respectively.
A single touch point (horizontal and vertical coordinates).
Public Constructor Summary
|
Point()
|
Public Method Summary
| static Ink.Point |
create(float x, float y)
Creates a new point without specifying timestamp.
|
| static Ink.Point |
create(float x, float y, long timestamp)
Creates a new point.
|
| abstract Long |
getTimestamp()
Time when the point was recorded, in milliseconds.
|
| abstract float |
getX()
Horizontal coordinate.
|
| abstract float |
getY()
Vertical coordinate.
|
Inherited Method Summary
Public Constructors
public Point ()
Public Methods
public static Ink.Point create (float x, float y)
Creates a new point without specifying timestamp.
This method should only be used when it is not feasible to include the timestamp information, as the recognition accuracy might degrade.
Scales on both dimensions are identical: a displacement of 1 horizontally or vertically must represent the same distance, as seen by the user.
Spatial origin can be arbitrary as long as it is consistent for a given ink.
Parameters
| x | horizontal coordinate. Increases to the right. |
|---|---|
| y | vertical coordinate. Increases downward. |
public static Ink.Point create (float x, float y, long timestamp)
Creates a new point.
Scales on both dimensions are identical: a displacement of 1 horizontally or vertically must represent the same distance, as seen by the user.
Spatial and temporal origins can be arbitrary as long as they are consistent for a given ink.
Parameters
| x | horizontal coordinate. Increases to the right. |
|---|---|
| y | vertical coordinate. Increases downward. |
| timestamp | time when the point was recorded, in milliseconds |
public abstract Long getTimestamp ()
Time when the point was recorded, in milliseconds.
public abstract float getX ()
Horizontal coordinate. Increases to the right.
public abstract float getY ()
Vertical coordinate. Increases to the right.