SwipePoint

A point in a swipe path

Constructor
SwipePoint(point: Point = Point(0, 0), hold: number = 0, speed: number = 20)

Construct a SwipePoint

Parameters
point Coordinate of the point
hold How long to hold at this point in miliseconds
speed The speed when moving from this point to the next, calculate as the number of pixels (relative to 1280x720 dimensions) to move in 12 miliseconds
Methods
getX
number getX()

Get the x coordinate

Return
number The x coordinate
getY
number getY()

Get the y coordinate

Return
number The y coordinate
getHold
number getHold()

Get the hold value

Return
number The hold value
getSpeed
number getSpeed()

Get the speed value

Return
number The speed value

© 2024 - Macrorify by KoK-CODE