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

        FloatPair floatPair = (FloatPair) o;
        return(floatPair.first == first && floatPair.second == second);
    }