Function XMVector3LinePointDistance

Source
pub fn XMVector3LinePointDistance(
    LinePoint1: FXMVECTOR,
    LinePoint2: FXMVECTOR,
    Point: FXMVECTOR,
) -> FXMVECTOR
Expand description

Computes the minimum distance between a line and a point.

§Parameters

LinePoint1 3D vector describing a point on the line.

LinePoint2 3D vector describing a point on the line.

Point 3D vector describing the reference point.

§Return value

Returns a vector. The minimum distance between the line and the point is replicated to each of the components.

§Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVector3LinePointDistance