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:
parent
ba7af82c5c
commit
c73f476915
6 changed files with 125 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue