Navigation
API > API/Runtime > API/Runtime/AIModule
Description
Finds the UV coordinates of the 'Point' on bilinear patch A,B,C,D. U interpolates from A->B, and C->D, and V interpolates from AB->CD. The UV coordinate is clamped to [0..1] range after inversion.
| Name | UE::AI::InvBilinear2DClamped |
| Type | function |
| Header File | /Engine/Source/Runtime/AIModule/Public/GeomUtils.h |
| Include Path | #include "GeomUtils.h" |
namespace UE
{
namespace AI
{
FVector2D UE::AI::InvBilinear2DClamped
(
const FVector Point,
const FVector VertexA,
const FVector VertexB,
const FVector VertexC,
const FVector VertexD
)
}
}
UV interpolation coordinates of the 'Point' in [0..1] range.
Parameters
| Name | Remarks |
|---|---|
| Point | location inside or close to the bilinear patch |
| VertexA | first corner |
| VertexB | second corner |
| VertexC | third corner |
| VertexD | fourth corner |