public float distanceSquared(Vector2f v) {
        double dx = x - v.x;
        double dy = y - v.y;
        return (float) (dx * dx + dy * dy);
    }
Returns the square of the distance between the current instance and the
argument. The current instance is unaffected.

@param v the vector to compare (not null, unaffected)
@return the square of the Euclidean distance (not negative)
jme3-core/src/main/java/com/jme3/math/Vector2f.java