x=x cos\alpha -y sin\alpha solve for \alpha