Skip to content

Commit

Permalink
Merge pull request #621 from gabsi26/main
Browse files Browse the repository at this point in the history
Fix mistake in `Angle::wrap`
  • Loading branch information
hannobraun authored May 23, 2022
2 parents 5eb3946 + 0818f35 commit 31ccc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/fj/src/angle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Angle {
fn wrap(rad: f64) -> f64 {
let modulo = rad % (2. * PI);
if modulo < 0. {
modulo * -1.
2. * PI + modulo
} else {
modulo
}
Expand Down

0 comments on commit 31ccc29

Please sign in to comment.