Implemented vector 3 cross product.

This commit is contained in:
jgoppert
2015-11-05 20:22:17 -05:00
parent 5b5cfcfeca
commit 32839006f3
2 changed files with 7 additions and 7 deletions
+2
View File
@@ -12,6 +12,8 @@ int main()
Vector3f a(1, 0, 0);
Vector3f b(0, 1, 0);
Vector3f c = a.cross(b);
c.print();
assert (c == Vector3f(0,0,1));
return 0;
}