@openhps/core
Version:
Open Hybrid Positioning System - Core component
28 lines • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AngularVelocity = void 0;
const tslib_1 = require("tslib");
const AngularVelocityUnit_1 = require("../../utils/unit/AngularVelocityUnit");
const decorators_1 = require("../decorators");
const SensorValue_1 = require("./SensorValue");
/**
* @category Sensor Value
*/
let AngularVelocity = class AngularVelocity extends SensorValue_1.SensorValue {
constructor(x, y, z, unit = AngularVelocityUnit_1.AngularVelocityUnit.RADIAN_PER_SECOND) {
super(x, y, z, unit, AngularVelocityUnit_1.AngularVelocityUnit.RADIAN_PER_SECOND);
}
static fromArray(array, unit = AngularVelocityUnit_1.AngularVelocityUnit.RADIAN_PER_SECOND) {
return new this(array[0], array[1], array[2], unit);
}
};
exports.AngularVelocity = AngularVelocity;
tslib_1.__decorate([
(0, decorators_1.SerializableMember)(),
tslib_1.__metadata("design:type", AngularVelocityUnit_1.AngularVelocityUnit)
], AngularVelocity.prototype, "unit", void 0);
exports.AngularVelocity = AngularVelocity = tslib_1.__decorate([
(0, decorators_1.SerializableObject)(),
tslib_1.__metadata("design:paramtypes", [Number, Number, Number, Object])
], AngularVelocity);
//# sourceMappingURL=AngularVelocity.js.map