MCPcopy Index your code
hub / github.com/microsoft/SandDance / transformPoint

Function transformPoint

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

Source from the content-addressed store, hash-verified

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;
130778 }
130779 return function(geometry) {
130780 geometry.coordinates.forEach(transformPolygon);
130781 return geometry;

Callers 2

arcFunction · 0.70
pointFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected