[committed] Matrix4f.transposeLocal()

Current transposeLocal() implementation creates temporal instance.

Patch doesn't need a instance creation and has less instructions.


Index: src/com/jme/math/Matrix4f.java
===================================================================
--- src/com/jme/math/Matrix4f.java   (revision 4291)
+++ src/com/jme/math/Matrix4f.java   (working copy)
@@ -539,9 +539,30 @@
      * @return this object for chaining.
      */
     public Matrix4f transposeLocal() {
-        float[] tmp = new float[16];
-        get(tmp, true);
-        set(tmp, false);
+        float tmp = m01;
+        m01 = m10;
+        m10 = tmp;
+       
+        tmp = m02;
+        m02 = m20;
+        m20 = tmp;
+       
+        tmp = m03;
+        m03 = m30;
+        m30 = tmp;
+       
+        tmp = m12;
+        m12 = m21;
+        m21 = tmp;
+       
+        tmp = m13;
+        m13 = m31;
+        m31 = tmp;
+       
+        tmp = m23;
+        m23 = m32;
+        m32 = tmp;
+
         return this;
     }     

Excellent idea! Good job!