UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

46 lines 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Vector4 = void 0; const tslib_1 = require("tslib"); const decorators_1 = require("../../data/decorators"); const THREE = require("./_internal"); /** * Serializable THREE.js Vector4 */ let Vector4 = class Vector4 extends THREE.Vector4 { static fromArray(array) { return new this().fromArray(array); } clone() { return new this.constructor().copy(this); } }; exports.Vector4 = Vector4; tslib_1.__decorate([ (0, decorators_1.SerializableMember)({ numberType: decorators_1.NumberType.DECIMAL, }), tslib_1.__metadata("design:type", Number) ], Vector4.prototype, "x", void 0); tslib_1.__decorate([ (0, decorators_1.SerializableMember)({ numberType: decorators_1.NumberType.DECIMAL, }), tslib_1.__metadata("design:type", Number) ], Vector4.prototype, "y", void 0); tslib_1.__decorate([ (0, decorators_1.SerializableMember)({ numberType: decorators_1.NumberType.DECIMAL, }), tslib_1.__metadata("design:type", Number) ], Vector4.prototype, "z", void 0); tslib_1.__decorate([ (0, decorators_1.SerializableMember)({ numberType: decorators_1.NumberType.DECIMAL, }), tslib_1.__metadata("design:type", Number) ], Vector4.prototype, "w", void 0); exports.Vector4 = Vector4 = tslib_1.__decorate([ (0, decorators_1.SerializableObject)() ], Vector4); //# sourceMappingURL=Vector4.js.map