Package com.leapmotion.leap

Examples of com.leapmotion.leap.CircleGesture.normal()


    if (parent != null) {
      switch (gesture.type()) {
        case TYPE_CIRCLE:
          CircleGesture circleGesture = new CircleGesture(gesture);
          String clockwiseness;
          if (circleGesture.pointable().direction().angleTo(circleGesture.normal()) <= Math.PI / 4) {
            // Clockwise if angle is less than 90 degrees
            clockwiseness = "clockwise";
          } else {
            clockwiseness = "counterclockwise";
          }
View Full Code Here


      case TYPE_CIRCLE:
        CircleGesture circle = new CircleGesture(gesture);

        // Calculate clock direction using the angle between circle normal and pointable
        String clockwiseness;
        if (circle.pointable().direction().angleTo(circle.normal()) <= Math.PI / 4) {
          // Clockwise if angle is less than 90 degrees
          clockwiseness = "clockwise";
        } else {
          clockwiseness = "counterclockwise";
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.