Skip to content

SQRT1_2

const SQRT1_2: 0.7071067811865476

Defined in: constants.ts:57

√½, which is also 1/√2.

Kept as a multiplier rather than a divisor: multiplying by this is one operation where dividing by SQRT2 is one plus a reciprocal, and the two round differently.