 |
MathUtilsGetPointToLineDistance Method |
GetPointToLineDistance returns the closest distance between a 3D position and a line.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic static float GetPointToLineDistance(
in Vector3 position,
in Vector3 linePosition1,
in Vector3 linePosition2
)
Parameters
- position Vector3
- Vector3
- linePosition1 Vector3
- first line position
- linePosition2 Vector3
- second line position
Return Value
Singleclosest distance between a 3D position and a line
See Also