equal
deleted
inserted
replaced
1 #include <xmmintrin.h> |
1 #include <xmmintrin.h> |
2 #include "vector.h" |
2 #include "vector.h" |
3 |
3 |
4 int main() { |
4 int main() { |
5 { |
5 { |
6 /* Vector3 */ |
6 /* Vector */ |
7 Vector3 a(1, 2, 3); |
7 Vector a(1, 2, 3); |
8 cout << "=== Vector3 test ===" << endl; |
8 cout << "=== Vector test ===" << endl; |
9 cout << "a = " << a << endl; |
9 cout << "a = " << a << endl; |
10 Vector3 b(2, 3, 2); |
10 Vector b(2, 3, 2); |
11 cout << "b = " << b << endl; |
11 cout << "b = " << b << endl; |
12 |
12 |
13 cout << "a + b = " << a + b << endl; |
13 cout << "a + b = " << a + b << endl; |
14 cout << "b - a = " << b - a << endl; |
14 cout << "b - a = " << b - a << endl; |
15 cout << "dot(a,b) = " << dot(a,b) << endl; |
15 cout << "dot(a,b) = " << dot(a,b) << endl; |