X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgrits-util.h;h=0fa144d2175ba8a99cd2b933c4652cc399462336;hp=ccfff162e594544fab017eb2d3b36f50f94f3a58;hb=ab244528448b35dc056427d8fe8d504a82267898;hpb=ccacea7801348ea9a8f408f929c11fded4e8b211 diff --git a/src/grits-util.h b/src/grits-util.h index ccfff16..0fa144d 100644 --- a/src/grits-util.h +++ b/src/grits-util.h @@ -159,6 +159,9 @@ struct _GritsPoint { void grits_point_set_lle(GritsPoint *point, gdouble lat, gdouble lon, gdouble elev); +/* GritsPoints */ +typedef gdouble (*GritsPoints)[3]; + /* GritsBounds */ typedef struct _GritsBounds GritsBounds; struct _GritsBounds { @@ -212,4 +215,10 @@ void normd(gdouble *a); gdouble lon_avg(gdouble a, gdouble b); +GritsPoints *parse_points(const gchar *string, + const gchar *group_sep, const gchar *point_sep, const gchar *coord_sep, + GritsBounds *bounds, GritsPoint *center); + +void free_points(GritsPoints *points); + #endif