[style] Move the negation into the constant

This commit is contained in:
Behdad Esfahbod 2022-02-18 18:21:46 -06:00
parent 16b232be0e
commit 651c280d0b
1 changed files with 2 additions and 2 deletions

View File

@ -46,13 +46,13 @@
static inline float
_hb_angle_to_ratio (float a)
{
return - tanf (a * float (M_PI / 180.));
return tanf (a * float (-M_PI / 180.));
}
static inline float
_hb_ratio_to_angle (float r)
{
return - atanf (r) * float (180. / M_PI);
return atanf (r) * float (-180. / M_PI);
}
/**