# booleanDisjoint

Boolean-disjoint returns (TRUE) if the intersection of the two geometries is an empty set.
如果两个几何图形的交集是一个空集,则布尔不相交返回(TRUE)。

> npm install @turf/boolean-disjoint

参数

参数 类型 描述
feature1 (Geometry|Feature) GeoJSON Feature or Geometry
feature2 (Geometry|Feature) GeoJSON Feature or Geometry

返回

boolean - true/false

示例

var point = turf.point([2, 2]);
var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);

turf.booleanDisjoint(line, point);
//=true
Last Updated: 1/19/2021, 10:59:20 AM