mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Add sqrt(2) and sqrt(1/2) constants
This commit is contained in:
parent
1fa976722a
commit
e6a3cac5ce
Notes:
sideshowbarker
2024-07-17 10:14:56 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/e6a3cac5ce Pull-request: https://github.com/SerenityOS/serenity/pull/14269 Reviewed-by: https://github.com/linusg
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ template<FloatingPoint T>
|
|||
constexpr T Pi = 3.141592653589793238462643383279502884L;
|
||||
template<FloatingPoint T>
|
||||
constexpr T E = 2.718281828459045235360287471352662498L;
|
||||
template<FloatingPoint T>
|
||||
constexpr T Sqrt2 = 1.414213562373095048801688724209698079L;
|
||||
template<FloatingPoint T>
|
||||
constexpr T Sqrt1_2 = 0.707106781186547524400844362104849039L;
|
||||
|
||||
namespace Details {
|
||||
template<size_t>
|
||||
|
|
Loading…
Reference in a new issue