UNPKG

gis-tools-ts

Version:

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

10 lines 818 B
import type { MValue, Properties, VectorFeature, VectorLineString, VectorLineStringGeometry, VectorPoint } from '../../index.js'; /** * Check to see if a point is on a line. Uses predicates to ensure the point is truly on the line * @param line - the line to check against * @param point - the point to check if it is on the line * @param epsilon - the buffer to use to check if the point is on the line within epsilon. Defaults to 0 * @returns True if the point is on the line */ export declare function pointOnLine<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(line: VectorLineString<D> | VectorLineStringGeometry<D> | VectorFeature<M, D, P, VectorLineStringGeometry<D>>, point: VectorPoint, epsilon?: number): boolean; //# sourceMappingURL=pointOnLine.d.ts.map