Click or drag to resize

UtilBoundedDistanceTo Method (Vector3, Vector3, Vector3)

Find the distance of a point from a line segment.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static double BoundedDistanceTo(
	Vector3 p,
	Vector3 v1,
	Vector3 v2
)

Parameters

p
Type: Microsoft.DirectXVector3
Point to test.
v1
Type: Microsoft.DirectXVector3
Start of line segment.
v2
Type: Microsoft.DirectXVector3
End of line segment.

Return Value

Type: Double
Distance of point from line segment.
See Also