Skip to content

KBE3D / KBCore / turf / booleanConcave

函数: booleanConcave()

booleanConcave(polygon: Polygon | Feature<Polygon, GeoJsonProperties>): boolean

Function

Takes a polygon and return true or false as to whether it is concave or not.

参数

polygon

to be evaluated

Polygon | Feature<Polygon, GeoJsonProperties>

返回

boolean

true/false

示例

ts
var convexPolygon = turf.polygon([[[0,0],[0,1],[1,1],[1,0],[0,0]]]);

turf.booleanConcave(convexPolygon)
//=false

KBE3D @3.0.0 Copyright © 2024-present KBE3D