Registry / other / mapbox-polylabel

mapbox-polylabel

JSON →
library2.0.1vcpkgunverified

A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)

vcpkg install mapbox-polylabel
INSTALL
IMPORT
SIG · MAPBOX-POLYLABEL
M
mapbox-polylabel
othercppv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mapbox/polylabel.hpp
#include <mapbox/polylabel.hpp>

Find the pole of inaccessibility of a polygon

#include <mapbox/polylabel.hpp> #include <iostream> int main() { mapbox::geometry::polygon<double> polygon; polygon.push_back({{0,0},{10,0},{10,10},{0,10},{0,0}}); auto p = mapbox::polylabel(polygon, 1.0); std::cout << "Pole: " << p.x << ", " << p.y << "\n"; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

mapbox-polylabel — pip install mapbox-polylabel · libregistry