Fix incorrect param order and docs on ArcTangent2 (fixes #2312)
Some checks are pending
Continuous Integration / ${{ matrix.os_short }}-${{ matrix.compiler_cc }} (clang, clang++, ubuntu-latest, linux) (push) Waiting to run
Continuous Integration / ${{ matrix.os_short }}-${{ matrix.compiler_cc }} (clang-14, clang++-14, ubuntu-22.04, linux) (push) Waiting to run
Continuous Integration / ${{ matrix.os_short }}-${{ matrix.compiler_cc }} (msvc, windows-latest, win) (push) Waiting to run
hl2sdk-mock tests / mock (push) Waiting to run
SourcePawn scripting / build (ubuntu-latest, linux) (push) Waiting to run
SourcePawn scripting / build (windows-latest, win) (push) Waiting to run

This commit is contained in:
Nicholas Hastings 2025-04-27 11:12:57 -04:00
parent c7410e3a35
commit ed2bb90ca5

View File

@ -254,11 +254,11 @@ native float ArcSine(float angle);
/** /**
* Returns the arctangent2 of the input values. * Returns the arctangent2 of the input values.
* *
* @param x Horizontal value.
* @param y Vertical value. * @param y Vertical value.
* @param x Horizontal value.
* @return atan2(value) in radians. * @return atan2(value) in radians.
*/ */
native float ArcTangent2(float x, float y); native float ArcTangent2(float y, float x);
/** /**
* Rounds a floating point number using the "round to nearest" algorithm. * Rounds a floating point number using the "round to nearest" algorithm.