Table of Contents

Class SwipeDirectionHelper

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Provides helper methods for working with SwipeDirection enumeration.

public static class SwipeDirectionHelper
Inheritance
SwipeDirectionHelper

Methods

GetAngleFromPoints(float, float, float, float)

Calculates the angle, in degrees, between two points in a 2D plane, measured from the first point to the second point.

GetSwipeDirection(PointD, PointD)

Determines the swipe direction based on the movement from an initial point to an end point.

GetSwipeDirectionFromAngle(float)

Determines the swipe direction based on the specified angle in degrees.

IsAngleInRange(float, float, float)

Determines whether a specified angle is within the range defined by the initial and end boundaries.