aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/math/sin.c.v
blob: 64098f4de69419acaee540dc510471c25db3e628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module math

fn C.cos(x f64) f64

fn C.cosf(x f32) f32

fn C.sin(x f64) f64

fn C.sinf(x f32) f32

// cos calculates cosine.
[inline]
pub fn cos(a f64) f64 {
	return C.cos(a)
}

// cosf calculates cosine. (float32)
[inline]
pub fn cosf(a f32) f32 {
	return C.cosf(a)
}

// sin calculates sine.
[inline]
pub fn sin(a f64) f64 {
	return C.sin(a)
}

// sinf calculates sine. (float32)
[inline]
pub fn sinf(a f32) f32 {
	return C.sinf(a)
}