Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore
| Name | UGeometryScriptLibrary_SimplePolygonFunctions |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PolygonFunctions.h |
| Include Path | #include "GeometryScript/PolygonFunctions.h" |
Syntax
UCLASS (MinimalAPI, Meta=(ScriptName="GeometryScript_SimplePolygon"))
class UGeometryScriptLibrary_SimplePolygonFunctions : public UBlueprintFunctionLibrary
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBlueprintFunctionLibrary → UGeometryScriptLibrary_SimplePolygonFunctions
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Position | FVector2D | GeometryScript/PolygonFunctions.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FGeometryScriptSimplePolygon Conv_ArrayOfVector2DToGeometryScriptSimplePolygon
(
const TArray< FVector2D >& PathVertices |
Returns a Polygon created from an array of 2D position vectors. | GeometryScript/PolygonFunctions.h |
|
static FGeometryScriptSimplePolygon Conv_ArrayToGeometryScriptSimplePolygon
(
const TArray< FVector >& PathVertices |
Returns a Polygon created from an array of 3D position vectors, ignoring the Z coordinate. | GeometryScript/PolygonFunctions.h |
|
static TArray< FVector > Conv_GeometryScriptSimplePolygonToArray
(
FGeometryScriptSimplePolygon Polygon |
Returns an array of 3D vectors with the Polygon vertex locations, with Z coordinate set to zero. | GeometryScript/PolygonFunctions.h |
|
static TArray< FVector2D > Conv_GeometryScriptSimplePolygonToArrayOfVector2D
(
FGeometryScriptSimplePolygon Polygon |
Returns an array of 2D Vectors with the Polygon vertex locations. | GeometryScript/PolygonFunctions.h |
|
static void ConvertSplineToPolygon
(
const USplineComponent* Spline, |
Sample positions from a USplineComponent into a Simple Polyon, based on the given SamplingOptions | GeometryScript/PolygonFunctions.h |
|
static double GetPolygonArcLength
(
FGeometryScriptSimplePolygon Polygon |
Returns the arc length of a Simple Polygon | GeometryScript/PolygonFunctions.h |
|
static double GetPolygonArea
(
FGeometryScriptSimplePolygon Polygon |
Returns the area enclosed by a Simple Polygon | GeometryScript/PolygonFunctions.h |
|
static FBox2D GetPolygonBounds
(
FGeometryScriptSimplePolygon Polygon |
Returns the bounding box of a Simple Polygon | GeometryScript/PolygonFunctions.h |
|
static FVector2D GetPolygonTangent
(
FGeometryScriptSimplePolygon Polygon, |
Returns a vertex's tangent of a Simple Polygon. | GeometryScript/PolygonFunctions.h |
|
static FVector2D GetPolygonVertex
(
FGeometryScriptSimplePolygon Polygon, |
Returns the specified vertex of a Simple Polygon. | GeometryScript/PolygonFunctions.h |
|
static int32 GetPolygonVertexCount
(
FGeometryScriptSimplePolygon Polygon |
Returns the number of vertices in a Simple Polygon | GeometryScript/PolygonFunctions.h |
|
static void SetPolygonVertex
(
UPARAM(ref) FGeometryScriptSimplePolygon Polygon, |
Set the specified vertex of a Simple Polygon. | GeometryScript/PolygonFunctions.h |
|
static static UPARAM
(
DisplayName |
Set the specified vertex of a Simple Polygon. Returns the index of the added vertex. | GeometryScript/PolygonFunctions.h |
|