JAL-1807 still testing
[jalviewjs.git] / bin / javajs / util / V3d.js
index c3a166e..729c5a3 100644 (file)
@@ -1,27 +1,27 @@
-Clazz.declarePackage ("javajs.util");
-Clazz.load (["javajs.util.T3d"], "javajs.util.V3d", null, function () {
-c$ = Clazz.declareType (javajs.util, "V3d", javajs.util.T3d);
-Clazz.defineMethod (c$, "cross", 
-function (v1, v2) {
-this.set (v1.y * v2.z - v1.z * v2.y, v1.z * v2.x - v1.x * v2.z, v1.x * v2.y - v1.y * v2.x);
-}, "javajs.util.V3d,javajs.util.V3d");
-Clazz.defineMethod (c$, "normalize", 
-function () {
-var d = this.length ();
-this.x /= d;
-this.y /= d;
-this.z /= d;
-});
-Clazz.defineMethod (c$, "dot", 
-function (v) {
-return this.x * v.x + this.y * v.y + this.z * v.z;
-}, "javajs.util.V3d");
-Clazz.defineMethod (c$, "lengthSquared", 
-function () {
-return this.x * this.x + this.y * this.y + this.z * this.z;
-});
-Clazz.defineMethod (c$, "length", 
-function () {
-return Math.sqrt (this.lengthSquared ());
-});
-});
+Clazz.declarePackage ("javajs.util");\r
+Clazz.load (["javajs.util.T3d"], "javajs.util.V3d", null, function () {\r
+c$ = Clazz.declareType (javajs.util, "V3d", javajs.util.T3d);\r
+Clazz.defineMethod (c$, "cross", \r
+function (v1, v2) {\r
+this.set (v1.y * v2.z - v1.z * v2.y, v1.z * v2.x - v1.x * v2.z, v1.x * v2.y - v1.y * v2.x);\r
+}, "javajs.util.V3d,javajs.util.V3d");\r
+Clazz.defineMethod (c$, "normalize", \r
+function () {\r
+var d = this.length ();\r
+this.x /= d;\r
+this.y /= d;\r
+this.z /= d;\r
+});\r
+Clazz.defineMethod (c$, "dot", \r
+function (v) {\r
+return this.x * v.x + this.y * v.y + this.z * v.z;\r
+}, "javajs.util.V3d");\r
+Clazz.defineMethod (c$, "lengthSquared", \r
+function () {\r
+return this.x * this.x + this.y * this.y + this.z * this.z;\r
+});\r
+Clazz.defineMethod (c$, "length", \r
+function () {\r
+return Math.sqrt (this.lengthSquared ());\r
+});\r
+});\r