@Override
    public boolean equals(Object o)
    {
        if(o == null)
        {
            return false;
        }

        if(o == this)
        {
            return true;
        }

        if(!(o instanceof Pixel))
        {
            return false;
        }

        Pixel other = (Pixel) o;

        return (this.x == other.x) && (this.y == other.y);
    }