UNPKG

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.

11 lines 200 B
/** * @public * As per Math.hypot, expect with 2 args. * * @remarks * See {@link mathHypot2}. */ export function mathHypot2(a: number, b: number): number { return Math.sqrt(a * a + b * b); }