Navigation
API > API/Runtime > API/Runtime/AIModule
Description
Intersects infinite lines defined by segments A and B in 2D. Using X and Y components of 3D vectors.
| Name | UE::AI::IntersectLineLine2D |
| Type | function |
| Header File | /Engine/Source/Runtime/AIModule/Public/GeomUtils.h |
| Include Path | #include "GeomUtils.h" |
namespace UE
{
namespace AI
{
bool UE::AI::IntersectLineLine2D
(
const FVector & StartA,
const FVector & EndA,
const FVector & StartB,
const FVector & EndB,
FVector2D::FReal & OutTA,
FVector2D::FReal & OutTB
)
}
}
if segments A and B intersect in 2D
Parameters
| Name | Remarks |
|---|---|
| StartA | start point of segment A |
| EndA | end point of segment A |
| StartB | start point of segment B |
| EndB | end point of segment B |
| OutTA | intersection value along segment A |
| OutTB | intersection value along segment B |