Method GetSwipeDirection
GetSwipeDirection(PointD, PointD)
Determines the swipe direction based on the movement from an initial point to an end point.
public static SwipeDirection GetSwipeDirection(PointD initialPoint, PointD endPoint)
Parameters
initialPointPointDThe starting point of the swipe gesture.
endPointPointDThe ending point of the swipe gesture.
Returns
- SwipeDirection
A value of type SwipeDirection indicating the direction of the swipe, such as up, down, left, or right.