Class InkPoints

java.lang.Object
com.myscript.iink.graphics.InkPoints

public class InkPoints extends Object
Represents ink points.
Since:
3.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float[]
    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

    Constructors
    Constructor
    Description
    InkPoints(float[] x, float[] y, long[] t, float[] f, float[] tilts, float[] orientations)
    Constructs an InkPoints
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      public float[] x
      The points x coordinates.
    • y

      public float[] y
      The points y coordinates.
    • t

      public long[] t
      The points timestamps in ms since Unix EPOCH.
    • f

      public float[] f
      The points normalized pressures, in [0,1].
    • tilts

      public float[] tilts
      The points tilts in radians, or empty if none. 0 is perpendicular, Pi/2 if flat on screen.
      Since:
      4.0
    • orientations

      public float[] orientations
      The points orientations in radians, or empty if none. 0 is pointing up, -Pi/2 is left, Pi/2 is right, +/-Pi is 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.