ChamplainPoint

## ChamplainPoint ChamplainPoint — A base struct to store a latitude and longitude |

## Synopsis

                        ChamplainPoint;
    ChamplainPoint *    champlain_point_new                 (gdouble lat,
                                                             gdouble lon);
    ChamplainPoint *    champlain_point_copy                (const ChamplainPoint *point);
    void                champlain_point_free                (ChamplainPoint *point);

## Description

## Details

### ChamplainPoint

    typedef struct {
      double lat;
      double lon;
    } ChamplainPoint;

### champlain_point_new ()

    ChamplainPoint *    champlain_point_new                 (gdouble lat,
                                                             gdouble lon);

`lat` : | the latitude
`lon` : | the longitude
Returns : | a newly allocated ChamplainPoint to be freed with champlain_point_free

Since 0.4

### champlain_point_copy ()

    ChamplainPoint *    champlain_point_copy                (const ChamplainPoint *point);

Makes a copy of the point structure. The result must be freed using `champlain_point_free()`.

`point` : | a ChamplainPoint
Returns : | an allocated copy of `point`.

Since 0.4

### champlain_point_free ()

    void                champlain_point_free                (ChamplainPoint *point);

Frees a point structure created with champlain_point_new or champlain_point_copy

`point` : | a ChamplainPoint

Since 0.4