rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
15 lines • 347 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mathHypot2 = void 0;
/**
* @public
* As per Math.hypot, expect with 2 args.
*
* @remarks
* See {@link mathHypot2}.
*/
function mathHypot2(a, b) {
return Math.sqrt(a * a + b * b);
}
exports.mathHypot2 = mathHypot2;
//# sourceMappingURL=math-hypot.js.map