class Vector {

    public float x;
    public float y;

    public Vector() {
    }

    public Vector(float x, float y) {
        this.x = x;
        this.y = y;
    }

    public static Vector div(Vector v, float n) {
        return new Vector(v.x / n, v.y / n);
    }

    public static Vector mult(Vector v, float n) {
        return new Vector(v.x * n, v.y * n);
    }

    public static Vector add(Vector v1, Vector v2) {
        return new Vector(v1.x + v2.x, v1.y + v2.y);
    }

    public static Vector sub(Vector v1, Vector v2) {
        return new Vector(v1.x - v2.x, v1.y - v2.y);
    }

    public void set(float x, float y) {
        this.x = x;
        this.y = y;
    }

    public void set(Vector v) {
        this.x = v.x;
        this.y = v.y;
    }

    public void div(float n) {
        x /= n;
        y /= n;
    }

    public void mult(float n) {
        x *= n;
        y *= n;
    }

    public void add(Vector v) {
        x += v.x;
        y += v.y;
    }

    public void add(float a, float b) {
        x += a;
        y += b;
    }

    public void sub(Vector v) {
        x -= v.x;
        y -= v.y;
    }

    public void sub(float a, float b) {
        x -= a;
        y -= b;
    }

    public float mag() {<FILL_FUNCTION_BODY>}

    public void normalize() {
        float m = mag();
        if (m != 0 && m != 1) {
            div(m);
        }
    }

    public float getX() {
        return x;
    }

    public float getY() {
        return y;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 83 * hash + Float.floatToIntBits(this.x);
        hash = 83 * hash + Float.floatToIntBits(this.y);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Vector other = (Vector) obj;
        if (Float.floatToIntBits(this.x) != Float.floatToIntBits(other.x)) {
            return false;
        }
        return Float.floatToIntBits(this.y) == Float.floatToIntBits(other.y);
    }

    @Override
    public String toString() {
        return "Vector{" + "x=" + x + ", y=" + y + '}';
    }
}

        return (float) Math.sqrt(x * x + y * y);
    
<no_super_class>