title: 2D Coordinate Transformation
body: <p>I have a global coordinate system that I need to transform to a local coordinate system. The new and old coordinate systems are shown below. </p>
  
  <p><img src="https://i.stack.imgur.com/BGQav.png" alt="enter image description here"></p>
  
  <p>Using transformation rules, I came with with the coordinates in the new system. These formulas are shown below.</p>
  
  <p><img src="https://i.stack.imgur.com/ydBXr.png" alt="enter image description here"></p>
  
  <p>These formulas are not working, and I'm not sure why? As test points I tried out these,</p>
  
  <p>Old System (0,-1.11270165)</p>
  
  <p>New System (5.88729835,-10)</p>
  
  <p>If anyone can enlighten me it would be greatly appreciated. Thanks.</p>