Skip to content

Commit

Permalink
includes/std: Fixed std::math::atan2 not taking correct arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv authored Oct 22, 2023
1 parent 93494a1 commit 6b136b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/std/math.pat
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ namespace std::math {
@param value Value
@return Arc tangent of `value` in radians between `-pi` and `pi`
*/
fn atan2(auto value) { return builtin::std::math::atan2(value); };
fn atan2(auto y, auto x) { return builtin::std::math::atan2(y, x); };

/**
Calculates the hyperbolic sine of `value`.
Expand Down

0 comments on commit 6b136b7

Please sign in to comment.