# 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或Geometry |
feature2 | (Geometry|Feature) | GeoJSON Feature或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