Nudged Versions Save

Estimate scale, rotation, and translation between two sets of 2D points. For multitouch, calibration, pattern recognition, and more.

2.0.0

2 years ago

Complete codebase rewrite. In short:

  • Pure functional approach. No object-oriented code.
  • Use { x: 1, y: 2 } instead of [ 1, 2 ] to denote a point.
  • Use { a: 1, b: 2, x: 3, y: 4 } instead of Transform to denote a transform.
  • Rearrange code and API into submodules
  • New analysis tools: mse, rss
  • Switched from ES5 to ES6: const and let instead of var etc
  • Switched testing framework from mocha to tape
  • High quality generated API documentation

1.6.0

2 years ago

New features:

  • nudged.createFromString enables creating a Transform from CSS matrix string

Other improvements

  • Reparied weird characters in docs

1.5.0

3 years ago

New translation estimators:

  • nudged.estimateL
  • nudged.estimateX
  • nudged.estimateY

Other improvements:

  • A slight efficiency improvement in nudged.estimate function.
  • Main documentation has been restructured and partly rewritten.
  • There is new but yet undocumented method transform.toString() that returns a CSS transform-function string.

Changes in development:

  • CI integration is migrated from travis-ci.org to travis-ci.com.
  • Git workflow updated, development branch dropped

1.4.0

6 years ago

Changes:

  • alias for Transform.equals(): Transform.equal()
  • a new method Transform.almostEqual()
  • expose Transform.EPSILON
  • use prototype in Transform instead of patching

1.3.1

6 years ago

Fixes a floating point bug in estimateTR

1.3.0

6 years ago

No breaking changes. Additions:

  • multiplyRight alias multiplyBy
  • Prebuilt transformations Transform.R90, .R180, .R270, and .X2
  • New transformation type I

Developmental changes:

  • replace jshint with standardjs
  • use genversion