Browse Source

Moved Vector3's __q1 to Vector3. Updated includes list. See #2920.

Mr.doob 12 years ago
parent
commit
59afe1a3f0

+ 0 - 2
src/math/Quaternion.js

@@ -346,5 +346,3 @@ THREE.Quaternion.slerp = function ( qa, qb, qm, t ) {
 	return qm.copy( qa ).slerp( qb, t );
 
 }
-
-THREE.Vector3.__q1 = new THREE.Quaternion(); // to be moved to Vector3.js

+ 2 - 0
src/math/Vector3.js

@@ -714,3 +714,5 @@ THREE.Vector3.prototype = {
 	}
 
 };
+
+THREE.Vector3.__q1 = new THREE.Quaternion();

+ 2 - 1
utils/includes/canvas.json

@@ -1,11 +1,13 @@
 [
 	"../src/Three.js",
 	"../src/math/Color.js",
+	"../src/math/Quaternion.js",
 	"../src/math/Vector2.js",
 	"../src/math/Vector3.js",
 	"../src/math/Vector4.js",
 	"../src/math/Matrix3.js",
 	"../src/math/Matrix4.js",
+	"../src/math/Ray.js",
 	"../src/math/Box2.js",
 	"../src/math/Box3.js",
 	"../src/math/Sphere.js",
@@ -13,7 +15,6 @@
 	"../src/math/Frustum.js",
 	"../src/math/Math.js",
 	"../src/math/Triangle.js",
-	"../src/math/Quaternion.js",
 	"../src/math/Vertex.js",
 	"../src/math/UV.js",
 	"../src/core/EventDispatcher.js",

+ 1 - 1
utils/includes/common.json

@@ -1,6 +1,7 @@
 [
 	"../src/Three.js",
 	"../src/math/Color.js",
+	"../src/math/Quaternion.js",
 	"../src/math/Vector2.js",
 	"../src/math/Vector3.js",
 	"../src/math/Vector4.js",
@@ -13,7 +14,6 @@
 	"../src/math/Frustum.js",
 	"../src/math/Plane.js",
 	"../src/math/Math.js",
-	"../src/math/Quaternion.js",
 	"../src/math/Spline.js",
 	"../src/math/Triangle.js",
 	"../src/math/Vertex.js",

+ 1 - 1
utils/includes/common2.json

@@ -1,6 +1,7 @@
 [
 	"../src/Three.js",
 	"../src/math/Color.js",
+	"../src/math/Quaternion.js",
 	"../src/math/Vector2.js",
 	"../src/math/Vector3.js",
 	"../src/math/Vector4.js",
@@ -13,7 +14,6 @@
 	"../src/math/Frustum.js",
 	"../src/math/Plane.js",
 	"../src/math/Math.js",
-	"../src/math/Quaternion.js",
 	"../src/math/Spline.js",
 	"../src/math/Triangle.js",
 	"../src/math/Vertex.js",

+ 1 - 1
utils/includes/css3d.json

@@ -1,12 +1,12 @@
 [
 	"../src/Three.js",
+	"../src/math/Quaternion.js",
 	"../src/math/Vector2.js",
 	"../src/math/Vector3.js",
 	"../src/math/Vector4.js",
 	"../src/math/Math.js",
 	"../src/math/Matrix3.js",
 	"../src/math/Matrix4.js",
-	"../src/math/Quaternion.js",
 	"../src/math/Frustum.js",
 	"../src/math/Sphere.js",
 	"../src/math/Plane.js",

+ 1 - 1
utils/includes/math.json

@@ -1,6 +1,7 @@
 [
 	"../src/Three.js",
 	"../src/math/Color.js",
+	"../src/math/Quaternion.js",
 	"../src/math/Vector2.js",
 	"../src/math/Vector3.js",
 	"../src/math/Vector4.js",
@@ -13,7 +14,6 @@
 	"../src/math/Plane.js",
 	"../src/math/Sphere.js",
 	"../src/math/Math.js",
-	"../src/math/Quaternion.js",
 	"../src/math/Spline.js",
 	"../src/math/Triangle.js"
 ]

+ 1 - 1
utils/includes/webgl.json

@@ -1,6 +1,7 @@
 [
 	"../src/Three.js",
 	"../src/math/Color.js",
+	"../src/math/Quaternion.js",
 	"../src/math/Vector2.js",
 	"../src/math/Vector3.js",
 	"../src/math/Vector4.js",
@@ -8,7 +9,6 @@
 	"../src/math/Matrix4.js",
 	"../src/math/Frustum.js",
 	"../src/math/Math.js",
-	"../src/math/Quaternion.js",
 	"../src/math/Vertex.js",
 	"../src/math/UV.js",
 	"../src/math/Spline.js",