diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2012-04-19 12:15:17 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2012-04-27 12:30:47 +0100 |
commit | d021cc7c02059126f2e20ce4807baf58161fe447 (patch) | |
tree | c2474f52e472f6a7cd66175b142f6bdc3f776126 /clutter/clutter-types.h | |
parent | bc914bb8a243e102dc3412edcf3b5bb5e9dccf0d (diff) | |
download | clutter-d021cc7c02059126f2e20ce4807baf58161fe447.tar.gz |
Add a function to compute the distance between points
Diffstat (limited to 'clutter/clutter-types.h')
-rw-r--r-- | clutter/clutter-types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clutter/clutter-types.h b/clutter/clutter-types.h index 4c5e3706a..c9c3e0bd6 100644 --- a/clutter/clutter-types.h +++ b/clutter/clutter-types.h @@ -139,6 +139,10 @@ ClutterPoint * clutter_point_copy (const ClutterPoint *point); void clutter_point_free (ClutterPoint *point); gboolean clutter_point_equals (const ClutterPoint *a, const ClutterPoint *b); +float clutter_point_distance (const ClutterPoint *a, + const ClutterPoint *b, + float *x_distance, + float *y_distance); /** * ClutterSize: |