X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2FJU%2FT3d.js;fp=site%2Fswingjs%2Fj2s%2FJU%2FT3d.js;h=8edac968e3b6101463548f694590547c24a10649;hp=f1b9526381f8025729c72a5718a2340a5c69e6fd;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/JU/T3d.js b/site/swingjs/j2s/JU/T3d.js index f1b9526..8edac96 100644 --- a/site/swingjs/j2s/JU/T3d.js +++ b/site/swingjs/j2s/JU/T3d.js @@ -1,87 +1,87 @@ -Clazz.declarePackage ("JU"); -Clazz.load (null, "JU.T3d", ["java.lang.Double"], function () { -c$ = Clazz.decorateAsClass (function () { -this.x = 0; -this.y = 0; -this.z = 0; -Clazz.instantialize (this, arguments); -}, JU, "T3d", 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$, "setA", -function (t) { -this.x = t[0]; -this.y = t[1]; -this.z = t[2]; -}, "~A"); -Clazz.defineMethod (c$, "setT", -function (t1) { -this.x = t1.x; -this.y = t1.y; -this.z = t1.z; -}, "JU.T3d"); -Clazz.defineMethod (c$, "add2", -function (t1, t2) { -this.x = t1.x + t2.x; -this.y = t1.y + t2.y; -this.z = t1.z + t2.z; -}, "JU.T3d,JU.T3d"); -Clazz.defineMethod (c$, "add", -function (t1) { -this.x += t1.x; -this.y += t1.y; -this.z += t1.z; -}, "JU.T3d"); -Clazz.defineMethod (c$, "sub2", -function (t1, t2) { -this.x = t1.x - t2.x; -this.y = t1.y - t2.y; -this.z = t1.z - t2.z; -}, "JU.T3d,JU.T3d"); -Clazz.defineMethod (c$, "sub", -function (t1) { -this.x -= t1.x; -this.y -= t1.y; -this.z -= t1.z; -}, "JU.T3d"); -Clazz.defineMethod (c$, "scale", -function (s) { -this.x *= s; -this.y *= s; -this.z *= s; -}, "~N"); -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.T3d,JU.T3d"); -Clazz.overrideMethod (c$, "hashCode", -function () { -var xbits = JU.T3d.doubleToLongBits0 (this.x); -var ybits = JU.T3d.doubleToLongBits0 (this.y); -var zbits = JU.T3d.doubleToLongBits0 (this.z); -return (xbits ^ (xbits >> 32) ^ ybits ^ (ybits >> 32) ^ zbits ^ (zbits >> 32)); -}); -c$.doubleToLongBits0 = Clazz.defineMethod (c$, "doubleToLongBits0", -function (d) { -return (d == 0 ? 0 : Double.doubleToLongBits (d)); -}, "~N"); -Clazz.overrideMethod (c$, "equals", -function (t1) { -if (!(Clazz.instanceOf (t1, JU.T3d))) return false; -var t2 = t1; -return (this.x == t2.x && this.y == t2.y && this.z == t2.z); -}, "~O"); -Clazz.overrideMethod (c$, "toString", -function () { -return "{" + this.x + ", " + this.y + ", " + this.z + "}"; -}); -}); +Clazz.declarePackage ("JU"); +Clazz.load (null, "JU.T3d", ["java.lang.Double"], function () { +c$ = Clazz.decorateAsClass (function () { +this.x = 0; +this.y = 0; +this.z = 0; +Clazz.instantialize (this, arguments); +}, JU, "T3d", 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$, "setA", +function (t) { +this.x = t[0]; +this.y = t[1]; +this.z = t[2]; +}, "~A"); +Clazz.defineMethod (c$, "setT", +function (t1) { +this.x = t1.x; +this.y = t1.y; +this.z = t1.z; +}, "JU.T3d"); +Clazz.defineMethod (c$, "add2", +function (t1, t2) { +this.x = t1.x + t2.x; +this.y = t1.y + t2.y; +this.z = t1.z + t2.z; +}, "JU.T3d,JU.T3d"); +Clazz.defineMethod (c$, "add", +function (t1) { +this.x += t1.x; +this.y += t1.y; +this.z += t1.z; +}, "JU.T3d"); +Clazz.defineMethod (c$, "sub2", +function (t1, t2) { +this.x = t1.x - t2.x; +this.y = t1.y - t2.y; +this.z = t1.z - t2.z; +}, "JU.T3d,JU.T3d"); +Clazz.defineMethod (c$, "sub", +function (t1) { +this.x -= t1.x; +this.y -= t1.y; +this.z -= t1.z; +}, "JU.T3d"); +Clazz.defineMethod (c$, "scale", +function (s) { +this.x *= s; +this.y *= s; +this.z *= s; +}, "~N"); +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.T3d,JU.T3d"); +Clazz.overrideMethod (c$, "hashCode", +function () { +var xbits = JU.T3d.doubleToLongBits0 (this.x); +var ybits = JU.T3d.doubleToLongBits0 (this.y); +var zbits = JU.T3d.doubleToLongBits0 (this.z); +return (xbits ^ (xbits >> 32) ^ ybits ^ (ybits >> 32) ^ zbits ^ (zbits >> 32)); +}); +c$.doubleToLongBits0 = Clazz.defineMethod (c$, "doubleToLongBits0", +function (d) { +return (d == 0 ? 0 : Double.doubleToLongBits (d)); +}, "~N"); +Clazz.overrideMethod (c$, "equals", +function (t1) { +if (!(Clazz.instanceOf (t1, JU.T3d))) return false; +var t2 = t1; +return (this.x == t2.x && this.y == t2.y && this.z == t2.z); +}, "~O"); +Clazz.overrideMethod (c$, "toString", +function () { +return "{" + this.x + ", " + this.y + ", " + this.z + "}"; +}); +});