X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fjavajs%2Futil%2FT4.js;h=d33a2c76df5e5d39bac9422fc16315e486564b71;hp=3ea8edd59310d0c06ba6b2cdf66b50541b3e8b2f;hb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/javajs/util/T4.js b/bin/javajs/util/T4.js index 3ea8edd..d33a2c7 100644 --- a/bin/javajs/util/T4.js +++ b/bin/javajs/util/T4.js @@ -1,37 +1,37 @@ -Clazz.declarePackage ("javajs.util"); -Clazz.load (["javajs.util.T3"], "javajs.util.T4", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.w = 0; -Clazz.instantialize (this, arguments); -}, javajs.util, "T4", javajs.util.T3); -Clazz.defineMethod (c$, "set4", -function (x, y, z, w) { -this.x = x; -this.y = y; -this.z = z; -this.w = w; -}, "~N,~N,~N,~N"); -Clazz.defineMethod (c$, "scale4", -function (s) { -this.scale (s); -this.w *= s; -}, "~N"); -Clazz.overrideMethod (c$, "hashCode", -function () { -return javajs.util.T3.floatToIntBits0 (this.x) ^ javajs.util.T3.floatToIntBits0 (this.y) ^ javajs.util.T3.floatToIntBits0 (this.z) ^ javajs.util.T3.floatToIntBits0 (this.w); -}); -Clazz.overrideMethod (c$, "equals", -function (o) { -if (!(Clazz.instanceOf (o, javajs.util.T4))) return false; -var t = o; -return (this.x == t.x && this.y == t.y && this.z == t.z && this.w == t.w); -}, "~O"); -Clazz.overrideMethod (c$, "toString", -function () { -return "(" + this.x + ", " + this.y + ", " + this.z + ", " + this.w + ")"; -}); -Clazz.overrideMethod (c$, "toJSON", -function () { -return "[" + this.x + ", " + this.y + ", " + this.z + ", " + this.w + "]"; -}); -}); +Clazz.declarePackage ("javajs.util"); +Clazz.load (["javajs.util.T3"], "javajs.util.T4", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.w = 0; +Clazz.instantialize (this, arguments); +}, javajs.util, "T4", javajs.util.T3); +Clazz.defineMethod (c$, "set4", +function (x, y, z, w) { +this.x = x; +this.y = y; +this.z = z; +this.w = w; +}, "~N,~N,~N,~N"); +Clazz.defineMethod (c$, "scale4", +function (s) { +this.scale (s); +this.w *= s; +}, "~N"); +Clazz.overrideMethod (c$, "hashCode", +function () { +return javajs.util.T3.floatToIntBits0 (this.x) ^ javajs.util.T3.floatToIntBits0 (this.y) ^ javajs.util.T3.floatToIntBits0 (this.z) ^ javajs.util.T3.floatToIntBits0 (this.w); +}); +Clazz.overrideMethod (c$, "equals", +function (o) { +if (!(Clazz.instanceOf (o, javajs.util.T4))) return false; +var t = o; +return (this.x == t.x && this.y == t.y && this.z == t.z && this.w == t.w); +}, "~O"); +Clazz.overrideMethod (c$, "toString", +function () { +return "(" + this.x + ", " + this.y + ", " + this.z + ", " + this.w + ")"; +}); +Clazz.overrideMethod (c$, "toJSON", +function () { +return "[" + this.x + ", " + this.y + ", " + this.z + ", " + this.w + "]"; +}); +});