FLineTryFindIntersection Method

Attempt to find an intersection between the two lines and output a reference to that intersection, if found.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 26.3006.2520
C#
public static bool TryFindIntersection(
	FVector2 pointA1,
	FVector2 pointA2,
	FVector2 pointB1,
	FVector2 pointB2,
	out FVector2 intersection
)

Parameters

pointA1  FVector2
Reference to the first point of the first line to compare.
pointA2  FVector2
Reference to the second point of the first line to compare.
pointB1  FVector2
Reference to the first point of the second line to compare.
pointB2  FVector2
Reference to the second point of the second line to compare.
intersection  FVector2
Reference to the intersection between the two lines, if found. Otherwise, null.

Return Value

Boolean
True if an intersection was found. Otherwise, false.

See Also