MCPcopy Create free account
hub / github.com/Stanko/offset-polygon / outwardEdgeNormal

Function outwardEdgeNormal

docs/src/offset-polygon.js:11–17  ·  view source on GitHub ↗
(vertex1, vertex2)

Source from the content-addressed store, hash-verified

9 };
10}
11function outwardEdgeNormal(vertex1, vertex2) {
12 var n = inwardEdgeNormal(vertex1, vertex2);
13 return {
14 x: -n.x,
15 y: -n.y
16 };
17}
18function createPolygon(vertices) {
19 const edges = [];
20 let minX = vertices.length > 0 ? vertices[0].x : void 0;

Callers 1

createPolygonFunction · 0.70

Calls 1

inwardEdgeNormalFunction · 0.70

Tested by

no test coverage detected