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

Function area

libs/mapv/mapv.js:2080–2082  ·  view source on GitHub ↗
(p, q, r)

Source from the content-addressed store, hash-verified

2078
2079// signed area of a triangle
2080function area(p, q, r) {
2081 return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);
2082}
2083
2084// check if two points are equal
2085function equals(p1, p2) {

Callers 5

filterPointsFunction · 0.85
isEarFunction · 0.85
isEarHashedFunction · 0.85
intersectsFunction · 0.85
locallyInsideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected