2d-transformation-solver
a small node modul to estimate the transformation parameter from two list of common points (different coordinate systems)
Installation
npm install 2d-transformation-solver --save
Usage
var trafoSolver= ; //inputvar pointSet = 'start': 'x': 10 'y': 20 'x': 30 'y': 70 'target': 'x': 20 'y': 30 'x': 40 'y': 80 ; //calculate transformation parametervar resultSet = trafoSolver; console; /*var resultSet = { 'tx': 1.0, 'ty': 1.0, 'scale': 0.9999999999999991, 'rotation': -4.44089209850063e-16, 'stdDev': 7.444291678311382e-15 }*/
Tests
npm test
Release History
- 0.1.0 Initial release
- 0.1.1 fixes
- 0.2.0 rename props of resultSet