ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random |
Module: | Prelude |
---|---|
Function: | atan2 |
Type: | RealFloat a => a -> a -> a |
Class: | RealFloat |
Description: | atan2 y x computes the angle (from the positive x-axis) of the vector from the origin to the point (x,y). atan2 y x returns a value in the range [-pi, pi] |
Related: |
Input: atan2 1 1
Output: 0.785398
Input: atan2 0 1
Output: 0.0
Input: atan2 1 0
Output: 1.5708