1 Clazz.declarePackage ("JU");
2 Clazz.load (null, "JU.M34", ["java.lang.ArrayIndexOutOfBoundsException"], function () {
3 c$ = Clazz.decorateAsClass (function () {
13 Clazz.instantialize (this, arguments);
15 Clazz.defineMethod (c$, "setAA33",
21 var n = Math.sqrt (x * x + y * y + z * z);
26 var c = Math.cos (angle);
27 var s = Math.sin (angle);
29 this.m00 = (c + x * x * omc);
30 this.m11 = (c + y * y * omc);
31 this.m22 = (c + z * z * omc);
32 var tmp1 = x * y * omc;
34 this.m01 = (tmp1 - tmp2);
35 this.m10 = (tmp1 + tmp2);
38 this.m02 = (tmp1 + tmp2);
39 this.m20 = (tmp1 - tmp2);
42 this.m12 = (tmp1 - tmp2);
43 this.m21 = (tmp1 + tmp2);
45 Clazz.defineMethod (c$, "rotate",
49 Clazz.defineMethod (c$, "rotate2",
50 function (t, result) {
51 result.set (this.m00 * t.x + this.m01 * t.y + this.m02 * t.z, this.m10 * t.x + this.m11 * t.y + this.m12 * t.z, this.m20 * t.x + this.m21 * t.y + this.m22 * t.z);
53 Clazz.defineMethod (c$, "setM33",
65 Clazz.defineMethod (c$, "clear33",
67 this.m00 = this.m01 = this.m02 = this.m10 = this.m11 = this.m12 = this.m20 = this.m21 = this.m22 = 0.0;
69 Clazz.defineMethod (c$, "set33",
70 function (row, col, v) {
114 Clazz.defineMethod (c$, "get33",
115 function (row, col) {
151 Clazz.defineMethod (c$, "setRow33",
173 Clazz.defineMethod (c$, "getRow33",
194 Clazz.defineMethod (c$, "setColumn33",
195 function (column, v) {
216 Clazz.defineMethod (c$, "getColumn33",
217 function (column, v) {
238 Clazz.defineMethod (c$, "add33",
250 Clazz.defineMethod (c$, "sub33",
262 Clazz.defineMethod (c$, "mul33",
274 Clazz.defineMethod (c$, "transpose33",
286 Clazz.defineMethod (c$, "setXRot",
288 var c = Math.cos (angle);
289 var s = Math.sin (angle);
300 Clazz.defineMethod (c$, "setYRot",
302 var c = Math.cos (angle);
303 var s = Math.sin (angle);
314 Clazz.defineMethod (c$, "setZRot",
316 var c = Math.cos (angle);
317 var s = Math.sin (angle);
328 Clazz.defineMethod (c$, "determinant3",
330 return this.m00 * (this.m11 * this.m22 - this.m21 * this.m12) - this.m01 * (this.m10 * this.m22 - this.m20 * this.m12) + this.m02 * (this.m10 * this.m21 - this.m20 * this.m11);
332 Clazz.defineMethod (c$, "err",
334 throw new ArrayIndexOutOfBoundsException ("matrix column/row out of bounds");