UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

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