r sin theta + cos theta = 1; r cos theta + sin theta = 1-r