Skip to content

Commit

Permalink
Update Vector3D.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael-Dev-21 authored Oct 14, 2020
1 parent f1da40e commit bc8cc96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/br/com/rafael/math/vector/Vector3D.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bc8cc96

Please sign in to comment.