mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Add math.atan2 (#819)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user