Class InkPoint

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

public class InkPoint extends Object
Represents an ink point.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    The point normalized pressure, in [0,1].
    float
    The point orientation in radians.
    long
    The point timestamp in ms since Unix EPOCH.
    float
    The point tilt in radians.
    float
    The point x coordinate.
    float
    The point y coordinate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    InkPoint(float x, float y, long t, float f)
    Constructs an InkPoint
    InkPoint(float x, float y, long t, float f, float tilt, float orientation)
    Constructs an InkPoint
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object obj)
     
    int
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public float x
      The point x coordinate.
    • y

      public float y
      The point y coordinate.
    • t

      public long t
      The point timestamp in ms since Unix EPOCH.
    • f

      public float f
      The point normalized pressure, in [0,1].
    • tilt

      public float tilt
      The point tilt in radians. 0 is perpendicular, Pi/2 if flat on screen.
      Since:
      4.0
    • orientation

      public float orientation
      The point orientation in radians. 0 is pointing up, -Pi/2 is left, Pi/2 is right, +/-Pi is 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

    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object