MCPcopy
hub / github.com/microsoft/SandDance / transformPoint

Function transformPoint

docs/tests/v2/es6/js/sanddance.js:111915–111918  ·  view source on GitHub ↗
(coordinates)

Source from the content-addressed store, hash-verified

111913 }
111914
111915 function transformPoint(coordinates) {
111916 coordinates[0] = (coordinates[0] - x1) * s;
111917 coordinates[1] = (coordinates[1] - y1) * s;
111918 }
111919
111920 return function (geometry) {
111921 geometry.coordinates.forEach(transformPolygon);

Callers 2

arcFunction · 0.70
pointFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected