diff --git a/src/main/java/br/com/rafael/math/vector/Vector3D.java b/src/main/java/br/com/rafael/math/vector/Vector3D.java index 8b4ab7d..85b41ff 100644 --- a/src/main/java/br/com/rafael/math/vector/Vector3D.java +++ b/src/main/java/br/com/rafael/math/vector/Vector3D.java @@ -158,7 +158,7 @@ public double distance(Vector3D other) { } public double dot(Vector3D other) { - return Math.sqrt(this._x * other._x + this._y * other._y + this._z * other._z); + return this._x * other._x + this._y * other._y + this._z * other._z; } public Vector3D crossMe(Vector3D other) {