Skip to content

Commit

Permalink
Fix clippy:manual_clamp lint. (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Jul 23, 2024
1 parent 1761b3d commit e99f437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/model/animated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Transform {
let skew_angle = self.skew_angle.evaluate(frame);
let skew_matrix = if skew != 0.0 {
const SKEW_LIMIT: f64 = 85.0;
let skew = -skew.min(SKEW_LIMIT).max(-SKEW_LIMIT);
let skew = -skew.clamp(-SKEW_LIMIT, SKEW_LIMIT);
let skew = skew.to_radians();
let angle = skew_angle.to_radians();
Affine::rotate(-angle) * Affine::skew(skew.tan(), 0.0) * Affine::rotate(angle)
Expand Down

0 comments on commit e99f437

Please sign in to comment.