util.DistanceToLine

From Garry's Mod
Jump to: navigation, search
 util.DistanceToLine( )

Contents

Description

Gets the distance between a line and a point in 3d space.

Arguments

Vector lineStart

Start of the line.

Arguments

Vector lineEnd

End of the line.

Arguments

Vector pointPos

The position of the point.

Returns

number

Distance from line.

Returns

Vector

Nearest point on line.

Returns

number

Distance along line from start.
Personal tools
Navigation