function initBoardPieceToWorld (piece) {
    var x, z;
    var y = squareSize / 2 + 2.48;

    x = (piece.pos[0] + piece.type / 2) * squareSize - 70;
    z = (piece.pos[1] + 1 / 2 ) * squareSize;
     
    return new THREE.Vector3(x, y, z);
}
/**
 * Converts the init piece board position to 3D world position.
 * @param {piece} piece objects.
 * @returns {THREE.Vector3}
 */
Converts the init piece board position to 3D world position.
@param {piece} piece objects.
Converts the init piece board position to 3D world position . @param { piece } piece objects .
function initBoardPieceToWorld (piece) {
    var x, z;
    var y = squareSize / 2 + 2.48;
    x = (piece.pos[0] + piece.type / 2) * squareSize - 70;
    z = (piece.pos[1] + 1 / 2 ) * squareSize;
    return new THREE.Vector3(x, y, z);
}
function initBoardPieceToWorld ( piece ) { var x , z ; var y = squareSize / 2 + 2.48 ; x = ( piece . pos [ 0 ] + piece . type / 2 ) * squareSize - 70 ; z = ( piece . pos [ 1 ] + 1 / 2 ) * squareSize ; return new THREE . Vector3 ( x , y , z ) ; }
Converts the init piece board position to 3D world position.
Converts the init piece board position to 3D world position .