31 #ifndef DOUGLAS_PEUCKER_H
32 #define DOUGLAS_PEUCKER_H
34 #include "external_includes.h"
47 GPtrArray *splt_douglas_peucker(GArray *gdk_points,
void (*callback)(
ui_state *ui),
48 ui_state *ui, gdouble threshold_to_discard_points, ...);
49 void splt_douglas_peucker_free(GPtrArray *douglas_peucker_ptr_array);
52 gdouble splt_find_distance(GdkPoint first, GdkPoint second);
53 gdouble splt_find_perpendicular_distance(GdkPoint point,
54 GdkPoint segment_begin_point, GdkPoint segment_end_point);
56 GdkPoint first_point, GdkPoint last_point);