Skip to content
On this page

计算多边形边缘的相切向量(polygonTangents)

js
npm install @turf/polygon-tangents

从一个点到(Multi)Polygon的切线

Finds the tangents of a (Multi)Polygon from a Point.

参数

参数类型描述
ptCoord从中计算切点
polygonFeature <(Polygon/MultiPolygon)>得到切线

返回(Returns)

Feature <Point> - 包含两个相切线点Feature集合

示例