UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

17 lines 479 B
import { equalLines } from '../../../index.js'; /** * Check if two XY(Z) Polygons are equal * @param a - The first XY(Z) Polygon * @param b - The second XY(Z) Polygon * @returns - True if the two XY(Z) Polygons are equal */ export function equalPolys(a, b) { if (a.length !== b.length) return false; for (let i = 0; i < a.length; i++) { if (!equalLines(a[i], b[i])) return false; } return true; } //# sourceMappingURL=equal.js.map