X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2FJU%2FT3i.js;h=cad0e6031b7caebd6fc43b2e0f6741bfbc128b55;hp=b123336413ee76001c38223296662e367b621ff0;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/JU/T3i.js b/site/j2s/JU/T3i.js index b123336..cad0e60 100644 --- a/site/j2s/JU/T3i.js +++ b/site/j2s/JU/T3i.js @@ -1,48 +1,48 @@ -Clazz.declarePackage ("JU"); -c$ = Clazz.decorateAsClass (function () { -this.x = 0; -this.y = 0; -this.z = 0; -Clazz.instantialize (this, arguments); -}, JU, "T3i", null, java.io.Serializable); -Clazz.makeConstructor (c$, -function () { -}); -Clazz.defineMethod (c$, "set", -function (x, y, z) { -this.x = x; -this.y = y; -this.z = z; -}, "~N,~N,~N"); -Clazz.defineMethod (c$, "setT", -function (t1) { -this.x = t1.x; -this.y = t1.y; -this.z = t1.z; -}, "JU.T3i"); -Clazz.defineMethod (c$, "add", -function (t) { -this.x += t.x; -this.y += t.y; -this.z += t.z; -}, "JU.T3i"); -Clazz.defineMethod (c$, "scaleAdd", -function (s, t1, t2) { -this.x = s * t1.x + t2.x; -this.y = s * t1.y + t2.y; -this.z = s * t1.z + t2.z; -}, "~N,JU.T3i,JU.T3i"); -Clazz.overrideMethod (c$, "hashCode", -function () { -return this.x ^ this.y ^ this.z; -}); -Clazz.overrideMethod (c$, "equals", -function (o) { -if (!(Clazz.instanceOf (o, JU.T3i))) return false; -var t = o; -return (this.x == t.x && this.y == t.y && this.z == t.z); -}, "~O"); -Clazz.overrideMethod (c$, "toString", -function () { -return "(" + this.x + ", " + this.y + ", " + this.z + ")"; -}); +Clazz.declarePackage ("JU"); +c$ = Clazz.decorateAsClass (function () { +this.x = 0; +this.y = 0; +this.z = 0; +Clazz.instantialize (this, arguments); +}, JU, "T3i", null, java.io.Serializable); +Clazz.makeConstructor (c$, +function () { +}); +Clazz.defineMethod (c$, "set", +function (x, y, z) { +this.x = x; +this.y = y; +this.z = z; +}, "~N,~N,~N"); +Clazz.defineMethod (c$, "setT", +function (t1) { +this.x = t1.x; +this.y = t1.y; +this.z = t1.z; +}, "JU.T3i"); +Clazz.defineMethod (c$, "add", +function (t) { +this.x += t.x; +this.y += t.y; +this.z += t.z; +}, "JU.T3i"); +Clazz.defineMethod (c$, "scaleAdd", +function (s, t1, t2) { +this.x = s * t1.x + t2.x; +this.y = s * t1.y + t2.y; +this.z = s * t1.z + t2.z; +}, "~N,JU.T3i,JU.T3i"); +Clazz.overrideMethod (c$, "hashCode", +function () { +return this.x ^ this.y ^ this.z; +}); +Clazz.overrideMethod (c$, "equals", +function (o) { +if (!(Clazz.instanceOf (o, JU.T3i))) return false; +var t = o; +return (this.x == t.x && this.y == t.y && this.z == t.z); +}, "~O"); +Clazz.overrideMethod (c$, "toString", +function () { +return "(" + this.x + ", " + this.y + ", " + this.z + ")"; +});