Garry's Mod Wiki

Revision Difference

Panel:Distance#526438

<function name="Distance" parent="Panel" type="classfunc"> <description>Returns the linear distance from the centre of this panel object and another.</description> <description><bug>Completely broken, do not use.</bug>Returns the linear distance from the centre of this panel object and another.</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> </rets> </function>