/*
- * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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 {
*
* Used by GritsOpenGL to set up the drawing window
*/
-#define FOV_DIST 2000.0
+#define FOV_DIST (1039.23)
/**
* MPPX:
*
* Returns: the resolution in meters per pixel
*/
-#define MPPX(dist) (4*dist/FOV_DIST)
+#define MPPX(dist) (dist/FOV_DIST)
void lle2xyz(gdouble lat, gdouble lon, gdouble elev,
gdouble *x, gdouble *y, gdouble *z);
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