Phoc.GestureSwipe.get_velocity

### Method

# Phoc GestureSwipeget_velocity

#### Declaration [src]

    gboolean
    phoc_gesture_swipe_get_velocity (
      PhocGestureSwipe* self,
      gdouble* velocity_x,
      gdouble* velocity_y
    )

#### Description [src]

If the gesture is recognized, this function returns `TRUE` and fill in `velocity_x` and `velocity_y` with the recorded velocity, as per the last event(s) processed.

#### Parameters

`velocity_x`

  Type: `gdouble*`

  Return value for the velocity in the X axis, in pixels/sec.

  The argument will be set by the function.

`velocity_y`

  Type: `gdouble*`

  Return value for the velocity in the Y axis, in pixels/sec.

  The argument will be set by the function.

#### Return value

Type: `gboolean`

Whether velocity could be calculated.