FPathIsPointInPolygon Method

Return a value indicating whether the specified point is in the caller's polygon.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2714.4042
C#
public static bool IsPointInPolygon(
	List<FVector2> path,
	FVector2 point,
	bool allowEdge = true
)

Parameters

path  ListFVector2
The path to check to test for.
point  FVector2
The point to test.
allowEdge  Boolean  (Optional)
Value indicating whether edge is included as a match.

Return Value

Boolean
True if the specified point exists within the polygon. Otherwise, false.

See Also