Added vector2.

This commit is contained in:
jgoppert committed 2015-11-07 14:27:12 -05:00
1 parent ace2751715
commit 9b995e19f3
12 files changed
+160 -45

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ int main()
assert(fabs(v1.norm() - 7.416198487095663f) < 1e-5);
Vector<float, 5> v2(data2);
assert(fabs(v1.dot(v2) - 130.0f) < 1e-5);
assert(fabs(v1*v2 - 130.0f) < 1e-5);
v2.normalize();
Vector<float, 5> v3(v2);
assert(v2 == v3);