-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·106 lines (70 loc) · 2.01 KB
/
main.cpp
File metadata and controls
executable file
·106 lines (70 loc) · 2.01 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#include <cmath>
#include <fstream>
#include "everything.h"
#include <iostream>
#include <chrono>
#include "texture_texture.h"
#include <unordered_set>
using namespace std;
#include "main_utils.h" // definitions of paths and some things
#include "misctests.h"
// #include "black_box_tests.h"
// #include "physicstests.h"
#include <chrono>
int main() {
std::cout << "BEGIN\n";
auto start = std::chrono::high_resolution_clock::now();
// RTexBVH();
// BoneTreeTest();
// CylinderTest();
// SkeletonTest();
// SkinTest();
// SkinAnim();
// MCRProtoAnim();
// AnimShader();
// AnimRTX();
// spinningcube();
// Particle0();
// Particle1();
// Particle2();
// RotatingSpring();
// GroundCollisionTest();
// GroundSpring();
// CableTest();
// SquareRods();
// RigidBody0();
// RigidBody1();
// RigidBody2();
// RigidBody4();
// BoundingVolumes1();
// PhysBVH4();
// BoundingVolumeFromCollisionTest();
// CollisionSphereTest();
// CollisionBoxTest();
// CollisionBoxTest2();
// CollisionsTest3();
sha256test();
/*
Matrix3 A(1, 3, 2, 3, 2, 1, 2, 1, 3);
auto p = eigen3_sym(A);
cout << p.first.to_string() << "\n" << p.second.sprintf() << endl;
*/
/*
Matrix2 A(2, 4, -3, 1);
std::cout << A.to_string() << "\n" << A.inv().to_string() << "\n" << (A.inv() * A).to_string() << std::endl;
Vector3 v(1, 2, 3);
Vector3 u = v;
u.x = 100;
std::cout << u.to_string() << " " << v.to_string() << "\n";
Vector3 defaultconstest;
std::cout << defaultconstest.to_string() << "\n";
*/
std::cout << "End\n";
auto end = std::chrono::high_resolution_clock::now();
auto duration = std::chrono::duration_cast<std::chrono::microseconds>(end - start);
int64_t count = duration.count();
std::cout << "Time taken: " << count << " us" << std::endl;
std::cout << "Time taken: " << count * 0.001 << " ms" << std::endl;
std::cout << "Time taken: " << count * 0.000001 << " s" << std::endl;
return 0;
}