Part of StarfallEx namespace
๐ External
math.distanceToLine(lineStart, lineEnd, pointPos)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Gets the distance between a line and a point in 3d space
Parameters
| Name | Type | Description |
|---|---|---|
lineStart | Vector | Start of the line |
lineEnd | Vector | End of the line |
pointPos | Vector | Position of the point |
Returns
| Type | Description |
|---|---|
number | Distance from line |
Vector | Nearest point on line |
number | Distance along line from start |
Examples
No examples available.
Used In
No usages found in the codebase.