Rotating rectangle precisely

See this topic…