Navigation
API > API/Runtime > API/Runtime/AIModule
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Public/GeomUtils.h |
| Include | #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
)
}
}
Remarks
Intersects infinite lines defined by segments A and B in 2D. Using X and Y components of 3D vectors. if segments A and B intersect in 2D
Parameters
| Name | Description |
|---|---|
| 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 |