Просмотр исходного кода

Added a Transform(Vector3f translation,Quaternion rotation,Vector3f scale) constructor

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8953 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 14 лет назад
Родитель
Сommit
9232c71cd7
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      engine/src/core/com/jme3/math/Transform.java

+ 5 - 0
engine/src/core/com/jme3/math/Transform.java

@@ -56,6 +56,11 @@ public final class Transform implements Savable, Cloneable, java.io.Serializable
         this.translation.set(translation);
         this.rot.set(rot);
     }
+    
+    public Transform(Vector3f translation, Quaternion rot, Vector3f scale){
+        this(translation, rot);
+        this.scale.set(scale);
+    }
 
     public Transform(Vector3f translation){
         this(translation, Quaternion.IDENTITY);