Add math.atan2 (#819)

This commit is contained in:
Artem Yarmoliuk
2024-11-18 22:11:19 +00:00
committed by GitHub
parent b93cb9b322
commit cc579f8fd6
4 changed files with 54 additions and 0 deletions

View File

@@ -145,6 +145,12 @@ external function acos(x: Number): Float
/// [1]: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions
external function atan(x: Number): Float
/// Returns the [2-argument arctangent][1] of [x] and [y].
///
/// [1]: https://en.wikipedia.org/wiki/Atan2
@Since { version = "0.28.0" }
external function atan2(x: Number, y: Number): Float
/// Returns the [greatest common divisor][1] of [x] and [y].
///
/// [1]: https://en.wikipedia.org/wiki/Greatest_common_divisor