Module
Math
- Package
- purescript-math
- Repository
- purescript/purescript-math
Wraps the math functions and constants from Javascript's built-in Math
object.
See Math Reference at MDN.
#atan2 Source
atan2 :: Number -> Number -> Radians
Four-quadrant tangent inverse. Given the arguments y
and x
, returns
the inverse tangent of y / x
, where the signs of both arguments are used
to determine the sign of the result.
If the first argument is negative, the result will be negative.
The result is the angle between the positive x axis and a point (x, y)
.
- Modules
- Math