UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

16 lines 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.operation3d = void 0; function operation3d(operation) { var coordinates = []; for (var _i = 1; _i < arguments.length; _i++) { coordinates[_i - 1] = arguments[_i]; } return { x: operation.apply(void 0, coordinates.map(function (c) { return c.x; })), y: operation.apply(void 0, coordinates.map(function (c) { return c.y; })), z: operation.apply(void 0, coordinates.map(function (c) { return c.z; })) }; } exports.operation3d = operation3d; //# sourceMappingURL=coordinates.util.js.map