Garry's Mod Wiki

Panel:DistanceFrom

number Panel:DistanceFrom( number posX, number posY )

Description

Broken, do not use

Returns the distance between the centre of this panel object and a specified point (local to the parent panel).

Arguments

1 number posX
The horizontal (x) position in pixels of the point to compare with. Local to the parent panel, or container.
2 number posY
The vertical (y) position in pixels of the point to compare with. Local to the parent panel, or container.

Returns

1 number
The linear (straight-line) distance between the specified point and the centre of the panel object.

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 3
Generate Html 11
SaveChanges 8
Render Body 0
Render Sidebar 12