Procházet zdrojové kódy

LibWeb: Fix calculation of degrees from radians

Thomas Fach-Pedersen před 3 roky
rodič
revize
83c79fec1c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Userland/Libraries/LibWeb/CSS/Angle.cpp

+ 1 - 1
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;
     }