# kinks

# 接口介绍

计算并返回 linestring , multi-linestring , multi-polygon , or polygon 所有的自交点。

# 返回值(FeatureCollection < Point >)

所有的自交点

# 示例

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);

# 官网地址

http://turfjs.org/docs/#kinks (opens new window)

Last Updated: 6/15/2022, 2:52:08 PM