Revision Difference
Panel:Distance#526624
<function name="Distance" parent="Panel" type="classfunc">
<description><bug>Completely broken, do not use.</bug>Returns the linear distance from the centre of this panel object and another.</description>⤶
<description>Returns the linear distance from the center of this panel object and another. **Both panels must have the same parent for this function to work properly.**</description>⤶
<realm>Client</realm>
<args>
<arg name="tgtPanel" type="Panel">The target object with which to compare position.</arg>
</args>
<rets>
<ret name="" type="number">The linear (straight-line) distance between the centres of the two objects.</ret>
<ret name="" type="number">The linear (straight-line) distance between the center of the two objects.</ret>
</rets>
</function>