-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAreaOfFigures.cpp
More file actions
62 lines (62 loc) · 1.25 KB
/
AreaOfFigures.cpp
File metadata and controls
62 lines (62 loc) · 1.25 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//#include "AreaOfFigures.h"
//#define _USE_MATH_DEFINES
//#include <math.h>
//int AreaOfFigures::GetKol()
//{
// return kol;
//}
//
//double AreaOfFigures::AreaOfTriacut_byHeight(double a, double h)
//{
// double S = 0.5 * a * h;
// kol++;
// return S;
//}
//
//double AreaOfFigures::AreaOfTriacut_bySin(double a, double b, double alpha)
//{
// alpha = alpha * M_PI / 180;
// double S = 0.5 * a * b * sin(alpha);
// kol++;
// return S;
//}
//
//double AreaOfFigures::AreaOfTriacut_bySide(double a, double b, double c)
//{
// double P = (a + b + c) / 2;
// double S = sqrt(P * (P - a)*(P - b)*(P - c));
// /*double S = pow(P * (P - a)*(P - b)*(P - c), 0.5);*/
// kol++;
// return S;
//}
//
//double AreaOfFigures::AreaOfSquare(double a)
//{
// double S = pow(a, 2);
// kol++;
// return S;
//}
//
//double AreaOfFigures::AreaOfRectangle(double a, double b)
//{
// int S = a * b;
// kol++;
// return S;
//}
//
//double AreaOfFigures::AreaOfRhombus(double d1, double d2)
//{
// double S = 0.5 * d1 * d2;
// kol++;
// return S;
//}
//
//double AreaOfFigures::AreaOfRhombus_bySin(double a, double alpha)
//{
// alpha = alpha * M_PI / 180;
// double S = pow(a, 2) * sin(alpha);
// kol++;
// return S;
//}
//
//