mirror of
https://github.com/xibyte/jsketcher
synced 2026-01-26 01:52:02 +01:00
cosmetic improvements of csys transformation matrix creation
This commit is contained in:
parent
12341bf26c
commit
1bda2764fa
1 changed files with 5 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue