The LeapCircleGesture classes represents a circular finger movement.
More...
Inherits LeapGesture.
The LeapCircleGesture classes represents a circular finger movement.
Compare LeapGesture object equality.
[thisGesture equals:thatGesture];
- Parameters
-
The center point of the circle within the Leap frame of reference.
- Returns
- LeapVector The center of the circle in mm from the Leap origin.
|
|
readnonatomicassigninherited |
The elapsed duration of the recognized movement up to the frame containing this LeapGesture object, in microseconds.
int64_t microseconds = gesture.duration;
- Returns
- int64_t the elapsed duration in microseconds.
| - (float) durationSeconds |
|
readnonatomicassigninherited |
The elapsed duration in seconds.
float seconds = gesture.duration;
- See also
- duration
- Returns
- float the elapsed duration in seconds.
|
|
readnonatomicstronginherited |
|
|
readnonatomicstronginherited |
The list of hands associated with this LeapGesture, if any.
NSArray *handList = gesture.hands;
LeapHand *gesturingHand = [handList objectAtIndex:0];
- Returns
- NSArray the list of related LeapHand objects.
|
|
readnonatomicassigninherited |
The gesture ID.
int gestureID = gesture.id;
- Returns
- int32_t the ID of this LeapGesture.
|
|
readnonatomicassigninherited |
Reports whether this LeapGesture instance represents a valid gesture.
LeapGesture *trackedGesture = [frame gesture:trackedGestureID];
{
}
- Returns
- bool Yes, if this is a valid LeapGesture instance; NO, otherwise.
Returns the normal vector for the circle being traced.
NSString* clockDirection;
if ([[[circleGesture pointable] direction]
angleTo:[circleGesture normal]] <= LEAP_PI/2)
{
clockDirection = @"clockwise";
} else {
clockDirection = @"counterclockwise";
}
- Returns
- LeapVector the normal vector for the circle being traced
The finger performing the circle gesture.
- Returns
- A LeapPointable object representing the circling finger.
|
|
readnonatomicstronginherited |
The list of fingers and tools associated with this LeapGesture, if any.
NSArray *pointableList = gesture.pointables;
LeapHand *gesturingPointable = [pointableList objectAtIndex:0];
- Returns
- NSArray the list of related LeapPointable objects.
The number of times the finger tip has traversed the circle.
int revolutions = floor(circleGesture.progress);
- Returns
- float A positive number indicating the gesture progress.
The radius of the circle.
float currentRadius = circleGesture.radius;
- Returns
- The circle radius in mm.
| - (LeapGestureState) state |
|
readnonatomicassigninherited |
The gesture state.
- Returns
- LeapGestureState A value from the LeapGestureState enumeration.
|
|
readnonatomicassigninherited |
The gesture type.
LeapGestureType type = gesture.type;
- Returns
- LeapGestureType A value from the LeapGestureType enumeration.