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:
parent
1b25513ed7
commit
83c79fec1c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue