Navigation
API > API/Runtime > API/Runtime/Chaos
Description
Get the closest point on a line segment between SegmentBegin and SegmentEnd to an infinite line through LinePos along LineVector in both direction. For implementation notes, see "Realtime Collision Detection", Christer Ericson, 2005
| Name | Chaos::Utilities::NearestPointsOnLineSegmentToLine |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Utilities.h |
| Include Path | #include "Chaos/Utilities.h" |
namespace Chaos
{
namespace Utilities
{
void Chaos::Utilities::NearestPointsOnLineSegmentToLine
(
const FVec3 & SegmentBegin,
const FVec3 & SegmentEnd,
const FVec3 & LinePos,
const FVec3 & LineVector,
FReal & S,
FReal & T,
FVec3 & C1,
FVec3 & C2,
const FReal Epsilon
)
}
}