Estimate scale, rotation, and translation between two sets of 2D points. For multitouch, calibration, pattern recognition, and more.
Complete codebase rewrite. In short:
{ x: 1, y: 2 }
instead of [ 1, 2 ]
to denote a point.{ a: 1, b: 2, x: 3, y: 4 }
instead of Transform to denote a transform.const
and let
instead of var
etcNew features:
nudged.createFromString
enables creating a Transform from CSS matrix stringOther improvements
New translation estimators:
Other improvements:
nudged.estimate
function.transform.toString()
that returns a CSS transform-function string.Changes in development:
Changes:
Fixes a floating point bug in estimateTR
No breaking changes. Additions:
Developmental changes: