index.d.cts 367 B

12345678910
  1. declare module "point-in-polygon-hao" {
  2. /**
  3. * Determines if a point is in a polygon
  4. *
  5. * @param p the point
  6. * @param polygon the polygon
  7. * @returns true if p in polygon, false if p is not in polygon, and 0 if p is on an edge of polygon
  8. */
  9. export default function pointInPolygon(p: number[], polygon: number[][][]): boolean | 0;
  10. }