1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math: update documentation (#14457)

This commit is contained in:
David 'Epper' Marshall
2022-05-20 01:45:54 -04:00
committed by GitHub
parent 23568f19da
commit 120f31b4d9
12 changed files with 108 additions and 51 deletions

View File

@@ -4,13 +4,13 @@ fn JS.Math.cos(x f64) f64
fn JS.Math.sin(x f64) f64
// cos calculates cosine.
// cos calculates cosine in radians
[inline]
pub fn cos(a f64) f64 {
return JS.Math.cos(a)
}
// sin calculates sine.
// sin calculates sine in radians
[inline]
pub fn sin(a f64) f64 {
return JS.Math.sin(a)