# kinks

Takes a linestring , multi-linestring , multi-polygon , or polygon and returns points at all self-intersections.
获取一个linestringmulti-linestringmulti-polygon,并返回所有自相交点。

参数

参数 类型 描述
featureIn Feature <(LineString|MultiLineString|MultiPolygon|Polygon)> input feature

返回

FeatureCollection <Point> - self-intersections

示例

var poly = turf.polygon([[
  [-12.034835, 8.901183],
  [-12.060413, 8.899826],
  [-12.03638, 8.873199],
  [-12.059383, 8.871418],
  [-12.034835, 8.901183]
]]);

var kinks = turf.kinks(poly);
Last Updated: 1/19/2021, 10:59:20 AM