]> git.maquefel.me Git - brevno-suite/hugo/commit
math: Add trigonometric functions and some angle helper functions
authorraoulb <raoulb@users.noreply.github.com>
Mon, 29 Jul 2024 09:05:36 +0000 (11:05 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Jul 2024 09:05:36 +0000 (11:05 +0200)
commit9d2b5f98d0efa06d5faf1a7596a53051bc1e088c
tree685af5ed561e148f926ca20f9ee40a2b606ed58b
parent0e005616204af78c17c402f9b01a41a857861551
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>
14 files changed:
docs/content/en/functions/math/Acos.md [new file with mode: 0644]
docs/content/en/functions/math/Asin.md [new file with mode: 0644]
docs/content/en/functions/math/Atan.md [new file with mode: 0644]
docs/content/en/functions/math/Atan2.md [new file with mode: 0644]
docs/content/en/functions/math/Cos.md [new file with mode: 0644]
docs/content/en/functions/math/Pi.md [new file with mode: 0644]
docs/content/en/functions/math/Sin.md [new file with mode: 0644]
docs/content/en/functions/math/Tan.md [new file with mode: 0644]
docs/content/en/functions/math/ToDegrees.md [new file with mode: 0644]
docs/content/en/functions/math/ToRadians.md [new file with mode: 0644]
docs/data/docs.yaml
tpl/math/init.go
tpl/math/math.go
tpl/math/math_test.go