-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlathe.cpp
40 lines (32 loc) · 899 Bytes
/
lathe.cpp
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
#include "inc/lathe.h"
int main(void) {
time_t start = time(0);
clock_t startClock = clock();
lathe<double> test;
/*
test.addPoint(true, 0.0, 0.0);
test.addPoint(true, 0.0, 1.0);
test.addPoint(true, 1.0, 0.0);
test.addPoint(false, 0.0, 0.0);
test.addPoint(false, 0.0, 1.0);
test.addPoint(false, 1.0, 1.0);
test.addPoint(false, 1.0, 0.0);
*/
test.addPoint(false, 0.0, 0.0);
test.addPoint(false, 0.0, 25.0);
test.addPoint(false, 120.0, 25.0);
test.addPoint(false, 120.0, 0.0);
/*
test.addPoint(true, 0.0, 0.0);
test.addPoint(true, 0.0, 7.5);
test.addPoint(true, 80.0, 20.0);
test.addPoint(true, 80.0, 0.0);
//*/
//test.testPlot();
test.testBezier();
test.run();
cout << "Program execution took " << time(0) - start << "s ("
<< 1000.0 * (clock() - startClock) / (double)(CLOCKS_PER_SEC) << "ms)"
<< endl;
return 0;
}