public static VyroGesture CreateFromLeapGesture(SwipeGesture gesture) { var s = new VyroGestureSwipe { Gesture = gesture }; s._Velocity.Initialize(Convert.ToInt64(s.Gesture.Speed)); return(s); }
public static VyroGesture CreateFromLeapGesture(Gesture gesture) { switch (gesture.Type) { case Gesture.GestureType.TYPECIRCLE: return(VyroGestureCircle.CreateFromLeapGesture(new CircleGesture(gesture))); case Gesture.GestureType.TYPESWIPE: return(VyroGestureSwipe.CreateFromLeapGesture(new SwipeGesture(gesture))); } return(null); }
public static VyroGesture CreateFromLeapGesture(SwipeGesture gesture) { var s = new VyroGestureSwipe { Gesture = gesture }; s._Velocity.Initialize(Convert.ToInt64(s.Gesture.Speed)); return s; }