title: What is the rotation that gives an horizontal flip and a vertical flip?
body: <p>Given this unit circle (degrees):</p>
  
  <p><img src="https://i.stack.imgur.com/FR229.png" alt="enter image description here"></p>
  
  <p>What would be the code for functions that would rotate the image to flip it horizontally and vertically?  </p>
  
  <p>For example, </p>
  
  <ul>
  <li>FlipHorizontal(315) = 225,  </li>
  <li>FlipHorizontal(45) = 135, </li>
  <li>FlipVertical(315) = 45,  </li>
  <li>FlipVertical(135) = 225.</li>
  </ul>