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 GetPointDistanceToSegment
&40;
FVector Point,
FVector SegmentStart,
FVector SegmentEnd
&41;
Remarks
Find the distance from a point to the closest point on a segment. The distance from the given point to the closest point on the segment.
Parameters
| Name | Description |
|---|---|
| Point | Point for which we find the distance to the closest point on the segment. |
| SegmentStart | Start of the segment. |
| SegmentEnd | End of the segment. |