RobotUIKit API
|
Recognize 'flick' gestures and get their heading, speed and distance. More...
#import <RUIFlickGestureRecognizer.h>
Properties | |
double | heading |
CGPoint | translation |
double | speed |
This gesture recognizer provides the heading, distance and speed of the flick gesture for use in controlling the robot. This gesture makes use of the UIGestureRecognizerStateBegan, UIGestureRecognizerStateChanged and UIGestureRecognizerStateEnded states to provide continuous feedback on the flick gesture that was recognized.
- (double) heading [read, assign] |
The heading of the flick gesture (in radians, see atan2)
- (double) speed [read, assign] |
The speed of the flick (in points per second)
- (CGPoint) translation [read, assign] |
The distance from the initial touch point to the end of the flick.