max_displacement_abs()

Calculate the maximum displacement between two gesture events.

Synopsis:

#include <gestures/types.h>
 
uint32_t max_displacement_abs(gesture_coords_t *coords1,
                              gesture_coords_t *coords2)

Arguments:

coords1

A pointer to the first gesture event.

coords2

A pointer to the second gesture event.

Library:

libgestures

Description:

This function returns the maximum displacement, in pixels, between two gesture events. For example, if the absolute value of the difference between the x coordinates of the two gestures is greater than the absolute value of the difference between the y coordinates, the former is returned by the function. You will likely need this function only if you are defining your own gestures.

Returns:

The maximum displacement, in pixels.