Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float PointDistToLine
(
const FVector& Point, |
Math/UnrealMathUtility.h | ||
static float PointDistToLine
(
const FVector& Point, |
Calculates the distance of a given Point in world space to a given line, defined by the vector couple (Origin, Direction). | Math/UnrealMathUtility.h |
PointDistToLine(const FVector &, const FVector &, const FVector &)
| Name | PointDistToLine |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static float PointDistToLine
(
const FVector & Point,
const FVector & Direction,
const FVector & Origin
)
PointDistToLine(const FVector &, const FVector &, const FVector &, FVector &)
Description
Calculates the distance of a given Point in world space to a given line, defined by the vector couple (Origin, Direction).
| Name | PointDistToLine |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static float PointDistToLine
(
const FVector & Point,
const FVector & Direction,
const FVector & Origin,
FVector & OutClosestPoint
)
distance of Point from line defined by (Origin, Direction)
Parameters
| Name | Remarks |
|---|---|
| Point | Point to check distance to line |
| Direction | Vector indicating the direction of the line. Not required to be normalized. |
| Origin | Point of reference used to calculate distance |
| OutClosestPoint | optional point that represents the closest point projected onto Axis |