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/Private/KismetMathLibrary.cpp |
static FVector FindClosestPointOnLine
&40;
FVector Point,
FVector LineOrigin,
FVector LineDirection
&41;
Remarks
Find the closest point on an infinite line to a given point. The closest point on the line to the given point.
Parameters
| Name | Description |
|---|---|
| Point | Point for which we find the closest point on the line. |
| LineOrigin | Point of reference on the line. |
| LineDirection | Direction of the line. Not required to be normalized. |