Struct PanGesture
A pan gesture received from a magic trackpad.
Syntax
public struct PanGesture : IEquatable<PanGesture>
Constructors
PanGesture(Vector2, Vector2, TouchPhase)
Declaration
public PanGesture(Vector2 position, Vector2 deltaPos, TouchPhase phase)
Parameters
Type |
Name |
Description |
Vector2 |
position |
The position of the touch in normalized coordinates.
|
Vector2 |
deltaPos |
The delta position of the touch since the last frame.
|
TouchPhase |
phase |
The phase of the gesture.
|
Properties
deltaPos
The delta position of the touch since the last frame.
Declaration
public readonly Vector2 deltaPos { get; }
Property Value
phase
The phase of the gesture.
Declaration
public readonly TouchPhase phase { get; }
Property Value
position
The position of the touch in normalized coordinates.
Declaration
public readonly Vector2 position { get; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Equals(PanGesture)
Declaration
public bool Equals(PanGesture other)
Parameters
Returns
Implements
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
Equality(PanGesture, PanGesture)
Declaration
public static bool operator ==(PanGesture left, PanGesture right)
Parameters
Returns
Inequality(PanGesture, PanGesture)
Declaration
public static bool operator !=(PanGesture left, PanGesture right)
Parameters
Returns