module/src/ship.js
/**
     * The ship's computed matrix after rotation and position are taken into consideration.
     * @property {Matrix} computed
     */
The ship's computed matrix after rotation and position are taken into consideration.
@property {Matrix} computed
The ship ' s computed matrix after rotation and position are taken into consideration . @property { Matrix } computed
get computed() {
        if (this.rotation == null) {
            throw new Error(`CANNOT_GET_COMPUTED_MATRIX_WITHOUT_ROTATION`);
        }
        if (this.position == null) {
            throw new Error(`CANNOT_GET_COMPUTED_MATRIX_WITHOUT_POSITION`);
        }
        if (this._computed == null) {
            this._computed = this.matrix.turn(this.rotation).placeAt(this.position);
        }
        return this._computed;
    }
get computed ( ) { if ( this . rotation == null ) { throw new Error ( ` ` ) ; } if ( this . position == null ) { throw new Error ( ` ` ) ; } if ( this . _computed == null ) { this . _computed = this . matrix . turn ( this . rotation ) . placeAt ( this . position ) ; } return this . _computed ; }
The ship's computed matrix after rotation and position are taken into consideration.
The ship ' s computed matrix after rotation and position are taken into consideration .