Table of Contents

Struct PinchInfo

Namespace
Icy.Input.Gestures
Assembly
IcyUI.dll

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

Center Vector2

The midpoint between the two fingers, in physical pixels.

Scale float

The finger distance relative to the distance when the pinch started (2 = twice as far apart).

ScaleDelta float

The scale change since the previous pinch event, as a factor.

CenterDelta Vector2

The movement of Center since 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

Vector2

CenterDelta

The movement of Center since the previous pinch event, in physical pixels.

public Vector2 CenterDelta { get; init; }

Property Value

Vector2

Scale

The finger distance relative to the distance when the pinch started (2 = twice as far apart).

public float Scale { get; init; }

Property Value

float

ScaleDelta

The scale change since the previous pinch event, as a factor.

public float ScaleDelta { get; init; }

Property Value

float