Struct PinchInfo
Describes one step of a two-finger pinch.
public readonly record struct PinchInfo : IEquatable<PinchInfo>
- Implements
- Inherited Members
- Extension Methods
Constructors
PinchInfo(Vector2, float, float, Vector2)
Describes one step of a two-finger pinch.
public PinchInfo(Vector2 Center, float Scale, float ScaleDelta, Vector2 CenterDelta)
Parameters
CenterVector2The midpoint between the two fingers, in physical pixels.
ScalefloatThe finger distance relative to the distance when the pinch started (
2= twice as far apart).ScaleDeltafloatThe scale change since the previous pinch event, as a factor.
CenterDeltaVector2The movement of
Centersince the previous pinch event, in physical pixels.
Properties
Center
The midpoint between the two fingers, in physical pixels.
public Vector2 Center { get; init; }
Property Value
CenterDelta
The movement of Center since the previous pinch event, in physical pixels.
public Vector2 CenterDelta { get; init; }
Property Value
Scale
The finger distance relative to the distance when the pinch started (2 = twice as far apart).
public float Scale { get; init; }
Property Value
ScaleDelta
The scale change since the previous pinch event, as a factor.
public float ScaleDelta { get; init; }