Skip to content

Commit

Permalink
Update Vector2D.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael-Dev-21 authored Oct 14, 2020
1 parent 2abcd81 commit fc5205f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/br/com/rafael/math/vector/Vector2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ public Vector2D rotate(double angle) {
* Retorna o produto escalar entre dois vetores.
*
* @param other Outro vetor.
* @return √(x0 * x1 + y0 * y1).
* @return x0 * x1 + y0 * y1.
*/
public double dot(Vector2D other) {
return Math.sqrt(this._x * other._x + this._y * other._y);
return this._x * other._x + this._y * other._y;
}

/**
Expand Down

0 comments on commit fc5205f

Please sign in to comment.