Computes the minimum distance between a line and a point.
XMVECTOR XMVector3LinePointDistance(
XMVECTOR LinePoint1,
XMVECTOR LinePoint2,
XMVECTOR Point
)
LinePoint1
Type: XMVECTOR
3D vector describing a point on the line.
LinePoint2
Type: XMVECTOR
3D vector describing a point on the line.
Point
Type: XMVECTOR
3D vector describing the reference point.
Type: XMVECTOR
Returns a vector. The minimum distance between the line and the point is replicated to each of the components.
Header: Declared in directxmath.h.