Appearance
KBE3D / KBCore / turf / booleanDisjoint
函数: booleanDisjoint()
booleanDisjoint(
feature1:Geometry|Feature<any,GeoJsonProperties>,feature2:Geometry|Feature<any,GeoJsonProperties>,options?: {ignoreSelfIntersections?:boolean; }):boolean
Function
Boolean-disjoint returns (TRUE) if the intersection of the two geometries is an empty set.
参数
feature1
GeoJSON Feature or Geometry
Geometry | Feature<any, GeoJsonProperties>
feature2
GeoJSON Feature or Geometry
Geometry | Feature<any, GeoJsonProperties>
options?
Optional parameters
ignoreSelfIntersections?
boolean
ignore self-intersections on input features
返回
boolean
true if the intersection is an empty set, false otherwise
示例
ts
var point = turf.point([2, 2]);
var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);
turf.booleanDisjoint(line, point);
//=true