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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

/// Trigonometric functions
///
///<a href="https://en.wikipedia.org/wiki/Trigonometric_functions">https://en.wikipedia
/// .org/wiki/Trigonometric_functions</a>
pub trait Trigonometry
{
	/// Returns the mathematic constant PI
	fn pi() -> Self;

	/// Sinus function
	fn sin(self: &Self) -> Self;

	/// Cosinus function
	fn cos(self: &Self) -> Self;

	/// Tangens function
	fn tan(self: &Self) -> Self;

	/// Cotangens function
	fn cot(self: &Self) -> Self;

	/// Secant function
	fn sec(self: &Self) -> Self;

	/// Cosecant function
	fn csc(self: &Self) -> Self;

	/// Inverse sinus function
	fn arcsin(self: &Self) -> Self;

	/// Inverse cosinus function
	fn arccos(self: &Self) -> Self;

	/// Inverse tangens function
	fn arctan(self: &Self) -> Self;

	fn arctan2(self: &Self,  other: &Self) -> Self;

	/// Inverse cosecant function
	fn arccot(self: &Self) -> Self;

	/// Inverse secant function
	fn arcsec(self: &Self) -> Self;

	// Inverse cosecant function
	fn arccsc(self: &Self) -> Self;
}