X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2FJU%2FV3.js;fp=site%2Fswingjs%2Fj2s%2FJU%2FV3.js;h=2e3684674b6a0278ad4ecf7aa20b00df921862f6;hp=e5f14069c2130585461db66a4a6940f47cd48bb5;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/JU/V3.js b/site/swingjs/j2s/JU/V3.js index e5f1406..2e36846 100644 --- a/site/swingjs/j2s/JU/V3.js +++ b/site/swingjs/j2s/JU/V3.js @@ -1,31 +1,31 @@ -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"); -}); +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"); +});