title: calculate new size and location on a CGRect
body: <p>I have a <code>CGRect</code> (let's call it <code>A1</code>) with know size and location that has a parent <code>A</code> of know size. <code>A1</code> has all sort of <code>CGAffineTransform</code> applied to it.</p>
  <p>I need to find the location and size of a second rectangle relative to a parent <code>B</code> of known (but different dimensions) that would look proportional to <code>A1</code> in relation to <code>A</code></p>
  <p>Basically a &quot;zoom&quot; effect. What would <code>A1</code> dimensions and position be to look similar when placed in <code>B</code> . Kind of a &quot;scale the CGAffineTransform&quot; ?</p>
  <p>visual guide:</p>
  <p><strong>From:</strong></p>
  <p><img src="https://i.stack.imgur.com/74uPI.jpg" alt="from" /></p>
  <p><strong>To:</strong></p>
  <p><img src="https://i.stack.imgur.com/hG6Cy.jpg" alt="to" /></p>