Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / JU / V3.js
index e5f1406..2e36846 100644 (file)
@@ -1,31 +1,31 @@
-Clazz.declarePackage ("JU");\r
-Clazz.load (["JU.T3"], "JU.V3", null, function () {\r
-c$ = Clazz.declareType (JU, "V3", JU.T3);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-});\r
-c$.newV = Clazz.defineMethod (c$, "newV", \r
-function (t) {\r
-return JU.V3.new3 (t.x, t.y, t.z);\r
-}, "JU.T3");\r
-c$.newVsub = Clazz.defineMethod (c$, "newVsub", \r
-function (t1, t2) {\r
-return JU.V3.new3 (t1.x - t2.x, t1.y - t2.y, t1.z - t2.z);\r
-}, "JU.T3,JU.T3");\r
-c$.new3 = Clazz.defineMethod (c$, "new3", \r
-function (x, y, z) {\r
-var v =  new JU.V3 ();\r
-v.x = x;\r
-v.y = y;\r
-v.z = z;\r
-return v;\r
-}, "~N,~N,~N");\r
-Clazz.defineMethod (c$, "angle", \r
-function (v1) {\r
-var xx = this.y * v1.z - this.z * v1.y;\r
-var yy = this.z * v1.x - this.x * v1.z;\r
-var zz = this.x * v1.y - this.y * v1.x;\r
-var cross = Math.sqrt (xx * xx + yy * yy + zz * zz);\r
-return Math.abs (Math.atan2 (cross, this.dot (v1)));\r
-}, "JU.V3");\r
-});\r
+Clazz.declarePackage ("JU");
+Clazz.load (["JU.T3"], "JU.V3", null, function () {
+c$ = Clazz.declareType (JU, "V3", JU.T3);
+Clazz.makeConstructor (c$, 
+function () {
+});
+c$.newV = Clazz.defineMethod (c$, "newV", 
+function (t) {
+return JU.V3.new3 (t.x, t.y, t.z);
+}, "JU.T3");
+c$.newVsub = Clazz.defineMethod (c$, "newVsub", 
+function (t1, t2) {
+return JU.V3.new3 (t1.x - t2.x, t1.y - t2.y, t1.z - t2.z);
+}, "JU.T3,JU.T3");
+c$.new3 = Clazz.defineMethod (c$, "new3", 
+function (x, y, z) {
+var v =  new JU.V3 ();
+v.x = x;
+v.y = y;
+v.z = z;
+return v;
+}, "~N,~N,~N");
+Clazz.defineMethod (c$, "angle", 
+function (v1) {
+var xx = this.y * v1.z - this.z * v1.y;
+var yy = this.z * v1.x - this.x * v1.z;
+var zz = this.x * v1.y - this.y * v1.x;
+var cross = Math.sqrt (xx * xx + yy * yy + zz * zz);
+return Math.abs (Math.atan2 (cross, this.dot (v1)));
+}, "JU.V3");
+});