Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
Include |
#include "Math/UnrealMathUtility.h" |
Source |
/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
Calculates the distance of a given Point in world space to a given line, defined by the vector couple (Origin, Direction).
distance of Point from line defined by (Origin, Direction)
Parameter |
Description |
---|---|
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 |