How can I relatively scale something between two points?
<p>This is more of a math question, and I couldn't seem to find any answers online.</p>

<p>So here is what I am trying to accomplish:</p>

<p>Lets say I have a circle, starting at <code>Ay</code>. Now as this circle moves towards <code>By</code>, I want it to scale proportionally to a certain size.</p>

<p>So for example, if the circle's diameter was 5 at <code>Ay</code>, how could I scale it to become 52.2 by the time it reaches <code>By</code>.</p>

<p><a href="https://i.stack.imgur.com/oKCEl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oKCEl.png" alt="enter image description here"></a></p>

<p>And bonus question: could I achieve this same thing with a square?</p>