sweepline-intersections
Version:
A module to check if a polygon self-intersects using a sweepline algorithm
13 lines (9 loc) • 369 B
text/typescript
import { FeatureCollection, Feature, GeometryObject } from "geojson";
declare namespace sweeplineIntersections {
export type Intersection = [number, number];
}
declare function sweeplineIntersections(
geojson: FeatureCollection<GeometryObject> | Feature<GeometryObject>,
ignoreSelfIntersections: boolean
): [number, number][];
export = sweeplineIntersections;