Added new Rectangle implementation that supports rotation.