Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UKismetMathLibrary
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
static float GetPointDistanceToLine
&40;
FVector Point,
FVector LineOrigin,
FVector LineDirection
&41;
Remarks
Find the distance from a point to the closest point on an infinite line. The distance from the given point to the closest point on the line.
Parameters
| Name | Description |
|---|---|
| Point | Point for which we find the distance to the closest point on the line. |
| LineOrigin | Point of reference on the line. |
| LineDirection | Direction of the line. Not required to be normalized. |