[−][src]Function directx_math::XMVector2LinePointDistance
pub fn XMVector2LinePointDistance(
LinePoint1: FXMVECTOR,
LinePoint2: FXMVECTOR,
Point: FXMVECTOR
) -> XMVECTOR
Computes the minimum distance between a line and a point.
Parameters
LinePoint1
2D vector describing a point on the line.
LinePoint2
2D vector describing a point on the line.
Point
2D 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.