libosmscout
1.1.1
Loading...
Searching...
No Matches
libosmscout
include
osmscout
util
PolygonCenter.h
Go to the documentation of this file.
1
#ifndef OSMSCOUT_POLYGONCENTER_H
2
#define OSMSCOUT_POLYGONCENTER_H
3
4
/*
5
This source is part of the libosmscout library
6
Copyright (C) 2022 Lukas Karas
7
Copyright (C) 2016 Mapbox
8
9
ISC License (compatible with GNU LGPL)
10
11
Permission to use, copy, modify, and/or distribute this software for any purpose
12
with or without fee is hereby granted, provided that the above copyright notice
13
and this permission notice appear in all copies.
14
15
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO
16
THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
17
IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
18
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
19
OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
20
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21
SOFTWARE.
22
*/
23
24
#include <
osmscout/lib/CoreImportExport.h
>
25
#include <
osmscout/GeoCoord.h
>
26
#include <
osmscout/Point.h
>
27
#include <
osmscout/Area.h
>
28
29
#include <vector>
30
31
namespace
osmscout
{
32
44
extern
OSMSCOUT_API
GeoCoord
PolygonCenter
(
const
Area& area,
double
precision = 1);
45
46
extern
OSMSCOUT_API
GeoCoord
PolygonCenter
(
const
std::vector<Point>& polygon,
double
precision = 1);
47
48
}
49
#endif
//OSMSCOUT_POLYGONCENTER_H
Area.h
CoreImportExport.h
OSMSCOUT_API
#define OSMSCOUT_API
Definition
CoreImportExport.h:45
GeoCoord.h
Point.h
osmscout::PolygonCenter
OSMSCOUT_API GeoCoord PolygonCenter(const Area &area, double precision=1)
osmscout
Definition
Area.h:39
Generated by
1.16.1