mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-16 08:25:56 +10:00
* Minor fixes (Geometry normal calculation) * Isolated Matrix3 code into `Matrix3.js` * README and TODO updated
22 lines
318 B
JavaScript
22 lines
318 B
JavaScript
THREE.Matrix3 = function () {
|
|
|
|
this.m = [];
|
|
|
|
};
|
|
|
|
THREE.Matrix3.prototype = {
|
|
|
|
transpose: function () {
|
|
|
|
var tmp;
|
|
|
|
tmp = this.m[1]; this.m[1] = this.m[3]; this.m[3] = tmp;
|
|
tmp = this.m[2]; this.m[2] = this.m[6]; this.m[6] = tmp;
|
|
tmp = this.m[5]; this.m[5] = this.m[7]; this.m[7] = tmp;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|