Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsGetPointToLineDistance Method

GetPointToLineDistance returns the closest distance between a 3D position and a line.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public 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

Single
closest distance between a 3D position and a line
See Also