style: Fix clamping on animations for fort-style.

Bug: 1455358
Reviewed-by: xidorn
MozReview-Commit-ID: Awyub0dMOmq
This commit is contained in:
Emilio Cobos Álvarez 2018-04-19 21:40:25 +02:00
parent 737501153b
commit 0a8518b452
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 37 additions and 10 deletions

View file

@ -110,8 +110,7 @@ impl Angle {
/// Returns the amount of degrees this angle represents.
#[inline]
pub fn degrees(self) -> f32 {
use std::f32::consts::PI;
self.radians() * 360. / (2. * PI)
self.value.degrees()
}
/// Returns `0deg`.