1 Clazz.declarePackage ("JU");
2 c$ = Clazz.decorateAsClass (function () {
6 Clazz.instantialize (this, arguments);
7 }, JU, "T3i", null, java.io.Serializable);
8 Clazz.makeConstructor (c$,
11 Clazz.defineMethod (c$, "set",
17 Clazz.defineMethod (c$, "setT",
23 Clazz.defineMethod (c$, "add",
29 Clazz.defineMethod (c$, "scaleAdd",
30 function (s, t1, t2) {
31 this.x = s * t1.x + t2.x;
32 this.y = s * t1.y + t2.y;
33 this.z = s * t1.z + t2.z;
34 }, "~N,JU.T3i,JU.T3i");
35 Clazz.overrideMethod (c$, "hashCode",
37 return this.x ^ this.y ^ this.z;
39 Clazz.overrideMethod (c$, "equals",
41 if (!(Clazz.instanceOf (o, JU.T3i))) return false;
43 return (this.x == t.x && this.y == t.y && this.z == t.z);
45 Clazz.overrideMethod (c$, "toString",
47 return "(" + this.x + ", " + this.y + ", " + this.z + ")";