title: How to scale an object and change position to keep one fixed point
body: <p>Note: I am using Unity3D to accomplish this this but I am pretty sure this is a generic question.</p>
  
  <p>I have an object and I want to scale it and then translate it so that when that object is scaled one specific point on the picture that I pick will stay in the same location after being scaled.</p>
  
  <p>Basically, this picture:</p>
  
  <p><a href="https://i.stack.imgur.com/DpFlt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DpFlt.png" alt="enter image description here"></a></p>
  
  <p>If I am scaling an object with width w, and height h, at position (x, y) (position is the center of image) by a factor of s, how much would I have to translate it to maintain a fixed point at point (a, b).</p>
  
  <p>EDIT: I forgot to mention that in Unity by default the object is scaled from the center of the object</p>