bsp;<span class=keyword>end</span><br>
<br>
mx&nbsp;=&nbsp;min(&nbsp;x&nbsp;);<br>
Mx&nbsp;=&nbsp;max(&nbsp;x&nbsp;);<br>
sx&nbsp;=&nbsp;Mx&nbsp;-&nbsp;mx;<br>
my&nbsp;=&nbsp;min(&nbsp;y&nbsp;);<br>
My&nbsp;=&nbsp;max(&nbsp;y&nbsp;);<br>
sy&nbsp;=&nbsp;My&nbsp;-&nbsp;my;<br>
<br>
centerx&nbsp;=&nbsp;(mx&nbsp;+&nbsp;Mx)&nbsp;/&nbsp;2;<br>
centery&nbsp;=&nbsp;(my&nbsp;+&nbsp;My)&nbsp;/&nbsp;2;<br>
center&nbsp;=&nbsp;corner&nbsp;+&nbsp;sz/2;<br>
<br>
<span class=keyword>if</span>(&nbsp;sy/sx&nbsp;&gt;&nbsp;&nb