Top |
OsmGpsMapPoint describes a geographic location (latitude, longitude).
Helper functions exist to create such a point from either radian co-ordinates
(osm_gps_map_point_new_radians()
) or degrees (osm_gps_map_new_degrees()
).
void osm_gps_map_point_get_degrees (OsmGpsMapPoint *point
,float *lat
,float *lon
);
Returns the lagitude and longitude in degrees.
point |
The point ( latitude and longitude in radian ) |
|
lat |
latitude in degrees. |
[out] |
lon |
longitude in degrees. |
[out] |
Since: 0.7.0
void osm_gps_map_point_get_radians (OsmGpsMapPoint *point
,float *rlat
,float *rlon
);
Returns the lagitude and longitude in radians.
point |
The OsmGpsMapPoint point ( latitude and longitude in radian ) |
|
rlat |
latitude in radians. |
[out] |
rlon |
longitude in radians. |
[out] |
Since: 0.7.0
gpointer
osm_gps_map_point_get_user_data (OsmGpsMapPoint *point
);
Get user data stored in point
Since: 1.2.0
OsmGpsMapPoint * osm_gps_map_point_new_degrees (float lat
,float lon
);
Create point with specified params
Since: 0.7.0
OsmGpsMapPoint * osm_gps_map_point_new_degrees_with_user_data (float lat
,float lon
,gpointer user_data
);
Create point with specified params
Since: 1.2.0
OsmGpsMapPoint * osm_gps_map_point_new_radians (float rlat
,float rlon
);
Create point with specified params
Since: 0.7.0
OsmGpsMapPoint * osm_gps_map_point_new_radians_with_user_data (float rlat
,float rlon
,gpointer user_data
);
Create point with specified params
rlat |
latitude in radians. |
[in] |
rlon |
longtitude in radians. |
[in] |
user_data |
user data. |
[in] |
Since: 1.2.0
void osm_gps_map_point_set_degrees (OsmGpsMapPoint *point
,float lat
,float lon
);
Sets the lagitude and longitude in degrees.
point |
The OsmGpsMapPoint point ( latitude and longitude in radian ) |
|
lat |
latitude in degrees. |
[in] |
lon |
longitude in degrees. |
[in] |
Since: 0.7.0
void osm_gps_map_point_set_radians (OsmGpsMapPoint *point
,float rlat
,float rlon
);
Sets the lagitude and longitude in radians.
point |
The OsmGpsMapPoint point ( latitude and longitude in radian ) |
|
rlat |
latitude in radians. |
[in] |
rlon |
longitude in radians. |
[in] |
Since: 0.7.0
void osm_gps_map_point_set_user_data (OsmGpsMapPoint *point
,gpointer user_data
);
Store user data in point
Since: 1.2.0
OsmGpsMapPoint *
osm_gps_map_point_copy (const OsmGpsMapPoint *point
);
Create a copy of a point
Since: 0.7.2
void
osm_gps_map_point_free (OsmGpsMapPoint *point
);
Free point object
Since: 0.7.2