UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

8 lines (7 loc) 656 B
import type { MValue, Properties, VectorFeature, VectorLineString, VectorLineStringGeometry } from '../../../index.js'; /** * Find the area of a linestring. No projection is assumed * @param input - the linestring as either a VectorFeature, VectorLineStringGeometry, or raw VectorLineString * @returns - the area of the linestring. Positive if the linestring is counter-clockwise, negative otherwise */ export declare function lineArea<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(input: VectorLineString<D> | VectorLineStringGeometry<D> | VectorFeature<M, D, P, VectorLineStringGeometry<D>>): number;