Skip to content

Commit

Permalink
Update Vector2.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael-Dev-21 authored Apr 23, 2021
1 parent d47b793 commit 202c21d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/br/com/rafael/math/vector/Vector2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ public double relativeAngleBetween(Vector2D other) {
*
* @param other Outro vetor.
* @return |this - other|.
*/
public double distance(Vector2D other) {
return this.subtract(other).size();
}
Expand Down

0 comments on commit 202c21d

Please sign in to comment.