mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
Fixed Vector.cross and optimized the Vector tests slightly.
This commit is contained in:
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user