Skip to content

Commit

Permalink
Remove deprecated use of Vec2::angle_between for Vec2::angle_to.
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyDev committed Jun 12, 2024
1 parent b638c82 commit 2ce58a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/dodgy_2d/src/visibility_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl Cone {
}

fn derive_related_angle(left_point: Vec2, right_point: Vec2) -> f32 {
Vec2::angle_between(left_point - right_point, left_point)
Vec2::angle_to(left_point - right_point, left_point)
}

fn distance_at_angle(&self, angle: f32) -> f32 {
Expand Down

0 comments on commit 2ce58a5

Please sign in to comment.