Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FGeomTools2D |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/GeomTools.h |
| Include Path | #include "GeomTools.h" |
Syntax
class FGeomTools2D
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Checks that these polygons can be successfully triangulated. | GeomTools.h | ||
static void CorrectPolygonWinding
(
TArray< FVector2D >& OutVertices, |
Corrects the polygon winding to match bNegativeWinding Ie. | GeomTools.h | |
| Generate convex hull from points. | GeomTools.h | ||
| Generate convex shapes. | GeomTools.h | ||
static bool IsPointInPolygon
(
const FVector2D& TestPoint, |
Returns true if TestPoint is inside the polygon defined by PolygonPoints. | GeomTools.h | |
static bool IsPolygonWindingCCW
(
const TArray< FVector2D >& Points |
Returns true if the points forming a polygon have CCW winding Returns true if the polygon isn't valid | GeomTools.h | |
static bool IsPolygonWindingCCW
(
const TArray< FIntPoint >& Points |
GeomTools.h | ||
| Merge additive and subtractive polygons, split them up into additive polygons Assumes all polygons and overlapping polygons are valid, and the windings match the setting on the polygon | GeomTools.h | ||
| 2D version of RemoveRedundantTriangles from GeomTools | GeomTools.h | ||
| Triangulate a polygon. Check notes in implementation. | GeomTools.h |