index.d.cts 506 B

1234567891011121314151617
  1. import { Feature, Polygon } from 'geojson';
  2. /**
  3. * Takes a polygon and return true or false as to whether it is concave or not.
  4. *
  5. * @function
  6. * @param {Feature<Polygon>} polygon to be evaluated
  7. * @returns {boolean} true/false
  8. * @example
  9. * var convexPolygon = turf.polygon([[[0,0],[0,1],[1,1],[1,0],[0,0]]]);
  10. *
  11. * turf.booleanConcave(convexPolygon)
  12. * //=false
  13. */
  14. declare function booleanConcave(polygon: Feature<Polygon> | Polygon): boolean;
  15. export { booleanConcave, booleanConcave as default };