X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fobjects%2Fgis-object.h;h=1777fce1fb27713af276971c95f929876a2ef593;hp=313f454f49fe5c52a4c17ad1d2449f9f96f12f49;hb=5350256efff1c97426e0db60e404bfd8a6cb08be;hpb=b87064909e6d20e1ee2995adae0c1ce5cb692d7e diff --git a/src/objects/gis-object.h b/src/objects/gis-object.h index 313f454..1777fce 100644 --- a/src/objects/gis-object.h +++ b/src/objects/gis-object.h @@ -20,18 +20,7 @@ #include #include - -/* 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()) @@ -56,6 +45,14 @@ struct _GisObjectClass { GType gis_object_get_type(void); +/** + * 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)