I'm not sure that a rectangle can be described that clearly as having a "direction". Is its width the direction of the rectangle or its height? I suppose it would depend on which is 'longer'.
If its rotation is zero, its width is to the right and its height is downwards.