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

LibWeb: Implement CSS sin()

This commit is contained in:
stelar7 2023-05-27 23:50:33 +02:00 committed by Sam Atkins
parent ba7af82c5c
commit c73f476915
6 changed files with 125 additions and 0 deletions

View file

@ -52,6 +52,11 @@ double Angle::to_degrees() const
VERIFY_NOT_REACHED();
}
double Angle::to_radians() const
{
return to_degrees() * (AK::Pi<double> / 180.0);
}
StringView Angle::unit_name() const
{
switch (m_type) {