@openhps/core
Version:
Open Hybrid Positioning System - Core component
40 lines • 1.76 kB
JavaScript
;
var AngularVelocityUnit_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AngularVelocityUnit = void 0;
const tslib_1 = require("tslib");
const decorators_1 = require("../../data/decorators");
const DerivedUnit_1 = require("./DerivedUnit");
const AngleUnit_1 = require("./AngleUnit");
const TimeUnit_1 = require("./TimeUnit");
/**
* @category Unit
*/
let AngularVelocityUnit = AngularVelocityUnit_1 = class AngularVelocityUnit extends DerivedUnit_1.DerivedUnit {
};
exports.AngularVelocityUnit = AngularVelocityUnit;
AngularVelocityUnit.RADIAN_PER_SECOND = new AngularVelocityUnit_1('radian per second', {
baseName: 'angularvelocity',
aliases: ['rad/s', 'radians per second'],
})
.addUnit(AngleUnit_1.AngleUnit.RADIAN, 1)
.addUnit(TimeUnit_1.TimeUnit.SECOND, -1);
AngularVelocityUnit.DEGREE_PER_SECOND = AngularVelocityUnit_1.RADIAN_PER_SECOND.swap([AngleUnit_1.AngleUnit.DEGREE], {
baseName: 'angularvelocity',
name: 'degree per second',
aliases: ['deg/s', 'degrees per second'],
});
AngularVelocityUnit.RADIAN_PER_MINUTE = AngularVelocityUnit_1.RADIAN_PER_SECOND.swap([TimeUnit_1.TimeUnit.MINUTE], {
baseName: 'angularvelocity',
name: 'radian per minute',
aliases: ['rad/min', 'radian per minute'],
});
AngularVelocityUnit.DEGREE_PER_MINUTE = AngularVelocityUnit_1.RADIAN_PER_SECOND.swap([AngleUnit_1.AngleUnit.DEGREE, TimeUnit_1.TimeUnit.MINUTE], {
baseName: 'angularvelocity',
name: 'degree per minute',
aliases: ['deg/min', 'degrees per minute'],
});
exports.AngularVelocityUnit = AngularVelocityUnit = AngularVelocityUnit_1 = tslib_1.__decorate([
(0, decorators_1.SerializableObject)()
], AngularVelocityUnit);
//# sourceMappingURL=AngularVelocityUnit.js.map