Return the squared distance between this and v . @param v the other vector @return the euclidean distance
(Vec2 v)
| 591 | * @return the euclidean distance |
| 592 | */ |
| 593 | public double distanceSquared(Vec2 v) { |
| 594 | return ((v.x - x) * (v.x - x) + (v.y - y) * (v.y - y)); |
| 595 | } |
| 596 | |
| 597 | /** |
| 598 | * Normalize this vector. |
no outgoing calls