s2maps-gpu
Version:
S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.
21 lines (20 loc) • 1.32 kB
TypeScript
import type { MValue, Properties, VectorFeature, VectorMultiPointGeometry, VectorPoint } from '../../index.js';
/**
* 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;