MCPcopy Create free account
hub / github.com/microsoft/SandDance / getPolygonWindingDirection

Function getPolygonWindingDirection

docs/app/js/sanddance-app.js:101634–101636  ·  view source on GitHub ↗
(points, options = {})

Source from the content-addressed store, hash-verified

101632 return false;
101633}
101634function getPolygonWindingDirection(points, options = {}) {
101635 return Math.sign(getPolygonSignedArea(points, options));
101636}
101637function getPolygonSignedArea(points, options = {}) {
101638 const { start =0 , end =points.length } = options;
101639 const dim = options.size || 2;

Callers 1

Calls 1

getPolygonSignedAreaFunction · 0.70

Tested by

no test coverage detected