libosmscout 0.1
Loading...
Searching...
No Matches
PolygonCenter.h File Reference
#include <osmscout/lib/CoreImportExport.h>
#include <osmscout/GeoCoord.h>
#include <osmscout/Point.h>
#include <osmscout/Area.h>
#include <vector>

Namespaces

namespace  osmscout
 Original source: https://github.com/philipperemy/easy-encryption/blob/master/b64.h licensed under terms of MIT license.
 

Functions

GeoCoord osmscout::PolygonCenter (const Area &area, double precision=1)
 A fast algorithm for finding polygon pole of inaccessibility, the most distant internal point from the polygon outline (not to be confused with centroid).
 
GeoCoord osmscout::PolygonCenter (const std::vector< Point > &polygon, double precision=1)