#include <glib.h>
#include <glib-object.h>
-
-/* GisPoint */
-typedef struct _GisPoint GisPoint;
-
-struct _GisPoint {
- gdouble lat, lon, elev;
-};
-
-GisPoint *gis_point_new();
-void gis_point_set_lle(GisPoint *point, gdouble lat, gdouble lon, gdouble elev);
-void gis_point_free(GisPoint *point);
-
+#include "gis-util.h"
/* GisObject */
#define GIS_TYPE_OBJECT (gis_object_get_type())
GType gis_object_get_type(void);
-static inline GisPoint *gis_object_center(GisObject *object)
-{
- return &GIS_OBJECT(object)->center;
-}
+/**
+ * gis_object_center:
+ * @object: The #GisObject to get the center of
+ *
+ * Get the #GisPoint representing the center of an object
+ *
+ * Returns: the center point
+ */
+#define gis_object_center(object) \
+ (&GIS_OBJECT(object)->center)
#endif