Package com.myscript.iink.graphics
Class InkPoint
java.lang.Object
com.myscript.iink.graphics.InkPoint
Represents an ink point.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public float xThe point x coordinate. -
y
public float yThe point y coordinate. -
t
public long tThe point timestamp in ms since Unix EPOCH. -
f
public float fThe point normalized pressure, in [0,1]. -
tilt
public float tiltThe point tilt in radians.0is perpendicular,Pi/2if flat on screen.- Since:
- 4.0
-
orientation
public float orientationThe point orientation in radians.0is pointing up,-Pi/2is left,Pi/2is right,+/-Piis down.- Since:
- 4.0
-
-
Constructor Details
-
InkPoint
public InkPoint(float x, float y, long t, float f) Constructs an InkPoint- Parameters:
x- the event x coordinate.y- the event y coordinate.t- the event timestamp in ms since Unix EPOCH, or-1.f- the event normalized pressure.
-
InkPoint
public InkPoint(float x, float y, long t, float f, float tilt, float orientation) Constructs an InkPoint- Parameters:
x- the event x coordinate.y- the event y coordinate.t- the event timestamp in ms since Unix EPOCH, or-1.f- the event normalized pressure.tilt- the event tilt in radians.orientation- the event orientation in radians.- Since:
- 4.0
-
InkPoint
public InkPoint()Default constructor.
-
-
Method Details