From 4ec5992f0ecb9d9feae3001dfac5fe986ff47810 Mon Sep 17 00:00:00 2001 From: timk Date: Mon, 22 Aug 2011 02:53:40 +0200 Subject: [PATCH] matrix compose / decompose method --- src/core/Matrix4.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/Matrix4.js b/src/core/Matrix4.js index 4e60d9b3..9e4820bd 100644 --- a/src/core/Matrix4.js +++ b/src/core/Matrix4.js @@ -717,6 +717,8 @@ THREE.Matrix4.prototype = { matrix.n33 /= scale.z; rotation.setFromRotationMatrix(matrix); + + return [translation, rotation, scale]; }, extractPosition: function ( m ) {