summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Angle.cpp
diff options
context:
space:
mode:
authorThomas Fach-Pedersen <thomas@fach-pedersen.net>2022-06-15 14:37:51 +0200
committerSam Atkins <atkinssj@gmail.com>2022-06-15 19:10:43 +0100
commit83c79fec1c44c92a343d53256eeb702141978061 (patch)
tree5a761afd65d4e9a7fcbcad527c19dfe989a240a4 /Userland/Libraries/LibWeb/CSS/Angle.cpp
parent1b25513ed715fd38efc2f3ac1d1ba5172cb27e66 (diff)
downloadserenity-83c79fec1c44c92a343d53256eeb702141978061.zip
LibWeb: Fix calculation of degrees from radians
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Angle.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Angle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Angle.cpp b/Userland/Libraries/LibWeb/CSS/Angle.cpp
index 1d7ce95630..d86cccefc5 100644
--- a/Userland/Libraries/LibWeb/CSS/Angle.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Angle.cpp
@@ -58,7 +58,7 @@ float Angle::to_degrees() const
case Type::Grad:
return m_value * (360.0f / 400.0f);
case Type::Rad:
- return m_value * (360.0f / 2 * AK::Pi<float>);
+ return m_value * (180.0f / AK::Pi<float>);
case Type::Turn:
return m_value * 360.0f;
}