UNPKG

gis-tools-ts

Version:

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

21 lines 1.35 kB
import type { MValue, Properties, VectorFeature, VectorMultiPointGeometry, VectorPoint } from '../..'; /** * Check if two XYZ Points are equal * @param a - The first XYZ Point * @param b - The second XYZ Point * @returns - True if the two XYZ Points are equal */ export declare function equalPoints(a: VectorPoint, b: VectorPoint): boolean; /** * Find the average of a collection of Vector points * @param vectorPoints - collection of Vector points, whether from a VectorFeature, geometry, or raw coordinates * @returns - the average of the vector points */ export declare function averageOfPoints<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(vectorPoints: VectorPoint<D>[] | VectorMultiPointGeometry<D> | VectorFeature<M, D, P, VectorMultiPointGeometry<D>>): VectorPoint; /** * Find the center of a collection of Vector points * @param vectorPoints - collection of Vector points, whether from a VectorFeature, geometry, or raw coordinates * @returns - the center of the vector points */ export declare function centerOfPoints<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(vectorPoints: VectorPoint<D>[] | VectorMultiPointGeometry<D> | VectorFeature<M, D, P, VectorMultiPointGeometry<D>>): VectorPoint; //# sourceMappingURL=points.d.ts.map