mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 19:33:08 -05:00
9d2b5f98d0
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>
24 lines
544 B
Markdown
24 lines
544 B
Markdown
---
|
|
title: math.Atan2
|
|
description: Returns the arctangent, in radians, of the given number pair, determining the correct quadrant from their signs.
|
|
categories: []
|
|
keywords: []
|
|
action:
|
|
aliases: []
|
|
related:
|
|
- functions/math/Atan
|
|
- functions/math/Asin
|
|
- functions/math/Acos
|
|
- functions/math/Pi
|
|
- functions/math/Sin
|
|
- functions/math/Cos
|
|
- functions/math/Tan
|
|
returnType: float64
|
|
signatures: [math.Atan2 VALUE VALUE]
|
|
---
|
|
|
|
{{< new-in 0.130.0 >}}
|
|
|
|
```go-html-template
|
|
{{ math.Atan2 1 2 }} → 0.4636476090008061
|
|
```
|