TouchPoint
com.onyx.android.sdk.data.note.TouchPoint
A single digitizer sample. Fields are public and mutable.
Fields
Field |
Type |
Description |
|---|---|---|
|
|
Screen-absolute X coordinate in pixels. |
|
|
Screen-absolute Y coordinate in pixels. |
|
|
Normalised pen pressure, 0.0–1.0. |
|
|
Contact area / tip size. |
|
|
[AI Generated] Pen tilt angle along the X axis in degrees. Populated on devices with tilt-capable digitizers. |
|
|
[AI Generated] Pen tilt angle along the Y axis in degrees. |
|
|
Milliseconds since device boot. |
Constructors
Signature |
Description |
|---|---|
|
[AI Generated] Zero-initialised point. |
|
[AI Generated] Point with position only. |
|
[AI Generated] Full constructor without tilt. |
|
[AI Generated] Full constructor with tilt. |
|
[AI Generated] Constructs from the current pointer of a |
|
[AI Generated] Copy constructor. |
Static helpers
Signature |
Description |
|---|---|
|
[AI Generated] Constructs a point from the current event position. |
|
[AI Generated] Constructs a point from a historical sample in a batched
|
|
[AI Generated] Euclidean distance between two points. |
|
[AI Generated] Angle between two points in degrees. |
|
[AI Generated] Applies a matrix transform to a point list, returning a new list. |
Instance methods
Signature |
Description |
|---|---|
|
[AI Generated] Copies all fields from another point into this one. |
|
[AI Generated] Translates the point by |
|
[AI Generated] Transforms x/y by the given matrix in-place. |
|
[AI Generated] Float-precision translate. |
|
[AI Generated] Scales x and y by the given factor. Returns |
|
[AI Generated] Deep copy. |