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