Browse Source

fix static value of Euler

Yomotsu 5 years ago
parent
commit
f549b793fe
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/math/Euler.js

+ 10 - 2
src/math/Euler.js

@@ -17,9 +17,17 @@ class Euler {
 
 	}
 
-	static RotationOrders = [ 'XYZ', 'YZX', 'ZXY', 'XZY', 'YXZ', 'ZYX' ];
+	static get RotationOrders() {
 
-	static DefaultOrder = 'XYZ';
+		return [ 'XYZ', 'YZX', 'ZXY', 'XZY', 'YXZ', 'ZYX' ];
+
+	}
+
+	static get DefaultOrder() {
+
+		return 'XYZ';
+
+	}
 
 	get x() {