Package com.myscript.iink.graphics
Class InkPoints
java.lang.Object
com.myscript.iink.graphics.InkPoints
Represents ink points.
- Since:
- 3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[]The points normalized pressures, in [0,1].float[]The points orientations in radians, or empty if none.long[]The points timestamps in ms since Unix EPOCH.float[]The points tilts in radians, or empty if none.float[]The points x coordinates.float[]The points y coordinates. -
Constructor Summary
ConstructorsConstructorDescriptionInkPoints(float[] x, float[] y, long[] t, float[] f, float[] tilts, float[] orientations) Constructs an InkPoints -
Method Summary
-
Field Details
-
x
public float[] xThe points x coordinates. -
y
public float[] yThe points y coordinates. -
t
public long[] tThe points timestamps in ms since Unix EPOCH. -
f
public float[] fThe points normalized pressures, in [0,1]. -
tilts
public float[] tiltsThe points tilts in radians, or empty if none.0is perpendicular,Pi/2if flat on screen.- Since:
- 4.0
-
orientations
public float[] orientationsThe points orientations in radians, or empty if none.0is pointing up,-Pi/2is left,Pi/2is right,+/-Piis down.- Since:
- 4.0
-
-
Constructor Details
-
InkPoints
public InkPoints(float[] x, float[] y, long[] t, float[] f, float[] tilts, float[] orientations) Constructs an InkPoints- Parameters:
x- the x coordinates.y- the y coordinates.t- the timestamps in ms since Unix EPOCH, or-1.f- the normalized pressures.tilts- the tilts in radians.orientations- the orientations in radians.
-