Skip to content

Commit

Permalink
don't normalize direction vector when calling atan2 (#5641)
Browse files Browse the repository at this point in the history
  • Loading branch information
slarticodefast authored Jan 30, 2025
1 parent d7f6a9b commit 2b2d08b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Robust.Shared.Maths/Angle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public Angle(double theta)
/// <param name="dir"></param>
public Angle(Vector2 dir)
{
dir = dir.Normalized();
Theta = Math.Atan2(dir.Y, dir.X);
}

Expand Down

0 comments on commit 2b2d08b

Please sign in to comment.