MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / locallyInside

Function locallyInside

libs/mapv/mapv.js:2107–2109  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

2105
2106// check if a polygon diagonal is locally inside the polygon
2107function locallyInside(a, b) {
2108 return area(a.prev, a, a.next) < 0 ? area(a, b, a.next) >= 0 && area(a, a.prev, b) >= 0 : area(a, b, a.prev) < 0 || area(a, a.next, b) < 0;
2109}
2110
2111// check if the middle point of a polygon diagonal is inside the polygon
2112function middleInside(a, b) {

Callers 3

cureLocalIntersectionsFunction · 0.85
findHoleBridgeFunction · 0.85
isValidDiagonalFunction · 0.85

Calls 1

areaFunction · 0.85

Tested by

no test coverage detected