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

Function transformRing

docs/app/js/sanddance-app.js:130771–130774  ·  view source on GitHub ↗
(coordinates)

Source from the content-addressed store, hash-verified

130769 coordinates.forEach(transformRing);
130770 }
130771 function transformRing(coordinates) {
130772 if (flip) coordinates.reverse(); // maintain winding order
130773 coordinates.forEach(transformPoint);
130774 }
130775 function transformPoint(coordinates) {
130776 coordinates[0] = (coordinates[0] - x1) * sx + tx;
130777 coordinates[1] = (coordinates[1] - y1) * sy + ty;

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected