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

Function outwardEdgeNormal

lib/offset-polygon.js:12–18  ·  view source on GitHub ↗
(vertex1, vertex2)

Source from the content-addressed store, hash-verified

10 };
11}
12function outwardEdgeNormal(vertex1, vertex2) {
13 var n = inwardEdgeNormal(vertex1, vertex2);
14 return {
15 x: -n.x,
16 y: -n.y
17 };
18}
19function createPolygon(vertices) {
20 const edges = [];
21 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