From bc8cc96dcee5947c0a4122fa56f6c043d095fe93 Mon Sep 17 00:00:00 2001 From: Rafael-Dev-21 <57507185+Rafael-Dev-21@users.noreply.github.com> Date: Tue, 13 Oct 2020 23:16:48 -0300 Subject: [PATCH] Update Vector3D.java --- src/main/java/br/com/rafael/math/vector/Vector3D.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {