Does Unreal provide a 2D segment intersection function that returns parametric t values?

Hello,

I’ve implemented my own function for computing the intersection between two 2D line segments, including returning the parametric values t1 and t2 for each segment.

However, before continuing to rely on my custom implementation, I’d prefer to use an existing built-in solution if Unreal already provides one.

Specifically, I’m looking for a function that operates on finite 2D segments (not infinite lines or rays) and returns the parametric coordinates:

P = A + t1 * (B - A)
P = C + t2 * (D - C)

Ideally, the function would:

  • Return both t1 and t2

  • Properly handle parallel / collinear cases (with appropriate epsilon tolerance)

  • Be part of Unreal’s math utilities (e.g. FMath, FGeomTools, or similar)

I’m aware of functions that return the intersection point, but I specifically need the parametric values for further processing.

If such functionality doesn’t exist, I’ll stick with my implementation — just checking to avoid reinventing something already available in the engine.

Thanks.