Revision Difference
Panel:DistanceFrom#526623
<function name="DistanceFrom" parent="Panel" type="classfunc">
<description><bug>Broken, do not use</bug>Returns the distance between the centre of this panel object and a specified point (local to the parent panel).</description>
<description>Returns the distance between the center of this panel object and a specified point local to the parent panel.</description>
<realm>Client</realm>
<args>
<arg name="posX" type="number">The horizontal (x) position in pixels of the point to compare with. Local to the parent panel, or container.</arg>
<arg name="posY" type="number">The vertical (y) position in pixels of the point to compare with. Local to the parent panel, or container.</arg>
<arg name="posX" type="number">The horizontal (x) position in pixels of the point to compare with. Local to the parent panel, or container, not the panel the function is called on.</arg>
<arg name="posY" type="number">The vertical (y) position in pixels of the point to compare with. Local to the parent panel, or container, not the panel the function is called on.</arg>
</args>
<rets>
<ret name="" type="number">The linear (straight-line) distance between the specified point and the centre of the panel object.</ret>
<ret name="" type="number">The linear (straight-line) distance between the specified point local to parent panel and the center of this panel object.</ret>
</rets>
</function>