UNPKG

gis-tools-ts

Version:

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

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