@rickosborne/hexgrid
Version:
Rick Osborne's collection of hexagonal grid-related code.
16 lines (15 loc) • 417 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
import { CUBE } from "./hex-system.mjs";
const cubeFromAxial = /* @__PURE__ */ __name((axial) => {
return {
q: axial.q,
r: axial.r,
s: 0 - axial.q - axial.r,
system: CUBE
};
}, "cubeFromAxial");
export {
cubeFromAxial
};
//# sourceMappingURL=cube-from-axial.mjs.map