Rectangle: Equals and HashCode

Hi,

I was working on my game for the Nar8 jam, and upon implementing a bounding volume hierarchy using rectangles, I noticed two critical functions were missing. First, the equals method was non-existent, making equivalence comparison between rectangles impossible. Secondly, the hashcode method was missing. Normally overriding hashcode is not required, but given that I have chosen to override equals, it is good coding practice to thereby override hashcode (See http://stackoverflow.com/questions/27581/overriding-equals-and-hashcode-in-java). I hope you find these additions useful to the API.

Cheers,
MadcowD
carlostnb@gmail dot com.