GestureSwipe.getVelocity

bool getVelocity(out double velocityX, out double velocityY)

Gets the current velocity.

If the gesture is recognized, this function returns true and fills in velocity_x and velocity_y with the recorded velocity, as per the last events processed.

Parameters

velocityXreturn value for the velocity in the X axis, in pixels/sec
velocityYreturn value for the velocity in the Y axis, in pixels/sec

Returns

whether velocity could be calculated