@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Line2D line = (Line2D) o;

        if (!a.equals(line.a)) return false;
        if (!b.equals(line.b)) return false;

        return true;
    }