js-aprs-fap
Version:
NodeJs library for parsing APRS packets.
20 lines • 620 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConversionUtil = void 0;
class ConversionUtil {
static CheckDate(year, month, day) {
var d = new Date(year, month, day);
return d.getFullYear() === year && d.getMonth() === month && d.getDate() === day;
}
static DegToRad(deg) {
return deg * (Math.PI / 180);
}
static RadToDeg(rad) {
return rad * (180 / Math.PI);
}
static FahrenheitToCelsius(degF) {
return (degF - 32) / 1.8;
}
}
exports.ConversionUtil = ConversionUtil;
//# sourceMappingURL=ConversionUtil.js.map