Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TDistLine2AxisAlignedBox2
Description
Compute the distance and closest point between a line and an aligned box whose center is the origin. The origin and direction are not const to allow for reflections that eliminate complicated sign logic in the queries themselves.
| Name | DoQuery |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Distance/DistLine2AxisAlignedBox2.h |
| Include Path | #include "Distance/DistLine2AxisAlignedBox2.h" |
static void DoQuery
(
TVector2 < Real > origin,
TVector2 < Real > direction,
const TVector2 < Real > & boxExtent,
TVector2 < Real > & BoxClosest,
TVector2 < Real > & LineClosest,
Real & LineParameter
)