Garry's Mod Wiki

Panel:DistanceFrom

number Panel:DistanceFrom( number posX, number posY )

Description

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: 23ms

Session 0
DB GetPage 4
Generate Html 1
SaveChanges 10
Render Body 0
Render Sidebar 6