code: function(data) {
   /**
    * The starting position within the Leap frame of
    * reference, in mm.
    *
    * @member startPosition
    * @memberof Leap.SwipeGesture.prototype
    * @type {number[]}
    */
    this.startPosition = data.startPosition;
   /**
    * The current swipe position within the Leap frame of
    * reference, in mm.
    *
    * @member position
    * @memberof Leap.SwipeGesture.prototype
    * @type {number[]}
    */
    this.position = data.position;
   /**
    * The unit direction vector parallel to the swipe motion.
    *
    * You can compare the components of the vector to classify the swipe as
    * appropriate for your application. For example, if you are using swipes
    * for two dimensional scrolling, you can compare the x and y values to
    * determine if the swipe is primarily horizontal or vertical.
    *
    * @member direction
    * @memberof Leap.SwipeGesture.prototype
    * @type {number[]}
    */
    this.direction = data.direction;
   /**
    * The speed of the finger performing the swipe gesture in
    * millimeters per second.
    *
    * @member speed
    * @memberof Leap.SwipeGesture.prototype
    * @type {number}
    */
    this.speed = data.speed;
  }
docs: Constructs a new SwipeGesture object.
  
  An uninitialized SwipeGesture object is considered invalid. Get valid instances
  of the SwipeGesture class from a Frame object.
  
  @class SwipeGesture
  @memberof Leap
  @augments Leap.Gesture
  @classdesc
  The SwipeGesture class represents a swiping motion of a finger or tool.
  
  ![SwipeGesture](images/Leap_Gesture_Swipe.png)
  
  Swipe gestures are continuous.