Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.math.distanceToLine

S๐Ÿท๏ธ Math

Part of StarfallEx namespace

๐Ÿ”— External
math.distanceToLine(lineStart, lineEnd, pointPos)
View on GitHub|lua/starfall/libs_sh/math.lua:386
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

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

Parameters

NameTypeDescription
lineStartVectorStart of the line
lineEndVectorEnd of the line
pointPosVectorPosition of the point

Returns

TypeDescription
numberDistance from line
VectorNearest point on line
numberDistance along line from start

Examples

No examples available.

Used In

No usages found in the codebase.