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

Function getPolygonWindingDirectionPoints

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

Source from the content-addressed store, hash-verified

101675 return false;
101676}
101677function getPolygonWindingDirectionPoints(points, options = {}) {
101678 return Math.sign(getPolygonSignedAreaPoints(points, options));
101679}
101680function getPolygonSignedAreaPoints(points, options = {}) {
101681 const { start =0 , end =points.length } = options;
101682 let area = 0;

Callers 1

Calls 1

Tested by

no test coverage detected