From 1bda2764fa78fbf55c1dda824bcc861b4a5bcd4c Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Tue, 30 Oct 2018 22:55:47 -0700 Subject: [PATCH] cosmetic improvements of csys transformation matrix creation --- web/app/math/csys.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/web/app/math/csys.js b/web/app/math/csys.js index 9cf197d7..212fe6b0 100644 --- a/web/app/math/csys.js +++ b/web/app/math/csys.js @@ -23,12 +23,11 @@ export default class CSys { get outTransformation() { if (!this._outTr) { - const basis = new Matrix3().setBasis([this.x, this.y, this.z]); - const translate = new Matrix3(); - basis.tx = this.origin.x; - basis.ty = this.origin.y; - basis.tz = this.origin.z; - this._outTr = basis;//basis.combine(translate); + const mx = new Matrix3().setBasisAxises(this.x, this.y, this.z); + mx.tx = this.origin.x; + mx.ty = this.origin.y; + mx.tz = this.origin.z; + this._outTr = mx; } return this._outTr; }