1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibWeb: Fix calculation of degrees from radians

This commit is contained in:
Thomas Fach-Pedersen 2022-06-15 14:37:51 +02:00 committed by Sam Atkins
parent 1b25513ed7
commit 83c79fec1c

View file

@ -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;
}