Expand description
This crate provides a Rust implementation of the Polylabel algorithm for finding the optimum position of a polygon label.
Modules
Errors that can occur when determining an optimum label position
Structs
Wrapper for a void pointer to a sequence of 2-element arrays representing points, and the sequence length. Used for FFI.
FFI struct for returned optimum Polygon label position
Wrapper for a void pointer to a sequence of Array
s, and the sequence length. Used for FFI.
Functions
Calculate a Polygon’s ideal label position by calculating its ✨pole of inaccessibility✨
FFI access to the polylabel
function