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

18 lines
254 B
V
Raw Normal View History

module math
fn JS.Math.cos(x f64) f64
fn JS.Math.sin(x f64) f64
2022-05-20 08:45:54 +03:00
// cos calculates cosine in radians
[inline]
pub fn cos(a f64) f64 {
return JS.Math.cos(a)
}
2022-05-20 08:45:54 +03:00
// sin calculates sine in radians
[inline]
pub fn sin(a f64) f64 {
return JS.Math.sin(a)
}