Fixed Vector.cross and optimized the Vector tests slightly.

This commit is contained in:
TomyLobo
2012-01-08 03:21:35 +01:00
parent e810113ea0
commit e1428602af
2 changed files with 11 additions and 11 deletions

View File

@ -503,9 +503,9 @@ public class Vector {
*/
public Vector cross(Vector other) {
return new Vector(
y * other.z + z * other.y,
z * other.x + x * other.z,
x * other.y + y * other.x
y * other.z - z * other.y,
z * other.x - x * other.z,
x * other.y - y * other.x
);
}