Skip to main content
Version: 7.0.0

booleanConcave

Description

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

Parameters

NameTypeDescription
polygonFeature<Polygon>to be evaluated

Returns

    boolean true/false

Examples

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

turf.booleanConcave(convexPolygon);
//=false

Installation

$ npm install @turf/boolean-concave

import { booleanConcave } from "@turf/boolean-concave";
const result = booleanConcave(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.booleanConcave(...);