From e6a3cac5ceae4043a8275244d03e71474463c7c2 Mon Sep 17 00:00:00 2001 From: Hediadyoin1 Date: Mon, 13 Jun 2022 17:05:06 +0200 Subject: [PATCH] AK: Add sqrt(2) and sqrt(1/2) constants --- AK/Math.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AK/Math.h b/AK/Math.h index 212bd2c4e14..1dd4e3c6ed8 100644 --- a/AK/Math.h +++ b/AK/Math.h @@ -23,6 +23,10 @@ template constexpr T Pi = 3.141592653589793238462643383279502884L; template constexpr T E = 2.718281828459045235360287471352662498L; +template +constexpr T Sqrt2 = 1.414213562373095048801688724209698079L; +template +constexpr T Sqrt1_2 = 0.707106781186547524400844362104849039L; namespace Details { template