Return the distance between this and v . @param v the other vector @return the euclidean distance
(Vec2 v)
| 581 | * @return the euclidean distance |
| 582 | */ |
| 583 | public double distance(Vec2 v) { |
| 584 | return Math.sqrt((v.x - x) * (v.x - x) + (v.y - y) * (v.y - y)); |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * Return the squared distance between <code>this</code> and <code>v</code>. |
no outgoing calls
no test coverage detected