hugo/docs/content/en/functions/math/Atan2.md
raoulb 9d2b5f98d0
math: Add trigonometric functions and some angle helper functions
This commit adds these new template functions in the `math` namespace:

math.Acos
math.Asin
math.Atan
math.Atan2
math.Cos
math.Pi
math.Sin
math.Tan
math.ToDegrees
math.ToRadians

Co-authored-by: Joe Mooring <joe@mooring.com>
2024-07-29 11:05:36 +02:00

544 B

title description categories keywords action
math.Atan2 Returns the arctangent, in radians, of the given number pair, determining the correct quadrant from their signs.
aliases related returnType signatures
functions/math/Atan
functions/math/Asin
functions/math/Acos
functions/math/Pi
functions/math/Sin
functions/math/Cos
functions/math/Tan
float64
math.Atan2 VALUE VALUE

{{< new-in 0.130.0 >}}

{{ math.Atan2 1 2 }} → 0.4636476090008061