Class TouchPoint
public sealed record TouchPoint : IEquatable<TouchPoint>
- Inheritance
-
TouchPoint
- Implements
- Inherited Members
Constructors
TouchPoint(double, double)
public TouchPoint(double X, double Y)
Parameters
XdoubleX coordinate of the event relative to the main frame's viewport in CSS pixels.
YdoubleY coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
Properties
Force
Force (default: 1.0).
public double? Force { get; init; }
Property Value
Id
Identifier used to track touch sources between events, must be unique within an event.
public double? Id { get; init; }
Property Value
RadiusX
X radius of the touch area (default: 1.0).
public double? RadiusX { get; init; }
Property Value
RadiusY
Y radius of the touch area (default: 1.0).
public double? RadiusY { get; init; }
Property Value
RotationAngle
Rotation angle (default: 0.0).
public double? RotationAngle { get; init; }
Property Value
TangentialPressure
The normalized tangential pressure, which has a range of [-1,1] (default: 0).
public double? TangentialPressure { get; init; }
Property Value
TiltX
The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
public double? TiltX { get; init; }
Property Value
TiltY
The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
public double? TiltY { get; init; }
Property Value
Twist
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
public long? Twist { get; init; }
Property Value
- long?
X
X coordinate of the event relative to the main frame's viewport in CSS pixels.
public double X { get; init; }
Property Value
Y
Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
public double Y { get; init; }