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:

committed by
GitHub

parent
23568f19da
commit
120f31b4d9
@@ -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)
|
||||
|
Reference in New Issue
Block a user