osbtools
Version:
A set of tools for working with osu! storyboards
34 lines (33 loc) • 776 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const checks_1 = require("../../utils/checks");
class SbVectorValue {
#x;
#y;
#z = null;
constructor({ x = null, y = null, z = null }) {
this.#x = x;
this.#y = y;
this.#z = z;
}
get() {
return {
x: this.#x,
y: this.#y,
z: this.#z
};
}
getX() {
return this.#x;
}
getY() {
return this.#y;
}
getZ() {
return this.#z;
}
toString() {
return [(0, checks_1.getNumberOrNull)(this.#x), (0, checks_1.getNumberOrNull)(this.#y), (0, checks_1.getNumberOrNull)(this.#z)].filter((x) => x !== null).join(",");
}
}
exports.default = SbVectorValue;