diff --git a/src/core/display/TransformStatic.js b/src/core/display/TransformStatic.js index e20b0d1..7b327a8 100644 --- a/src/core/display/TransformStatic.js +++ b/src/core/display/TransformStatic.js @@ -136,6 +136,17 @@ return childTransform; }; +/** + * Decomposes a matrix and sets the transforms properties based on it. + * @param {Matrix} + */ +TransformStatic.prototype.setFromMatrix = function (matrix) +{ + matrix.decompose(this); +}; + + + Object.defineProperties(TransformStatic.prototype, { /** * The rotation of the object in radians.