rotate90 method

void rotate90()

Rotate size around 90 degrees (same effect as 270)

Implementation

void rotate90()
{
  double oldWidth = width;
  width = height;
  height = oldWidth;
}