Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TConvexHull2
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Solve
(
TArrayView< const TVector2< RealType > > Points |
Default FilterFunc version of the above Solve(); workaround for clang bug https://bugs.llvm.org/show_bug.cgi?id=25333 | CompGeom/ConvexHull2.h | |
bool Solve
(
TArrayView< const TVector2< RealType > > Points, |
Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call GetDimension() to determine whether the points were collinear, or all the same point | CompGeom/ConvexHull2.h | |
bool Solve
(
int32 NumPoints, |
Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call GetDimension() to determine whether the points were collinear, or all the same point | CompGeom/ConvexHull2.h |
Solve(TArrayView< const TVector2< RealType > >)
Description
Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call GetDimension() to determine whether the points were collinear, or all the same point
| Name | Solve |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexHull2.h |
| Include Path | #include "CompGeom/ConvexHull2.h" |
bool Solve
(
TArrayView < const TVector2 < RealType > > Points
)
true if hull was generated, false if points span < 2 dimensions
Parameters
| Name | Remarks |
|---|---|
| Points | Array of points to consider |
Solve(TArrayView< const TVector2< RealType > >, TFunctionRef< bool(int32)>)
Description
Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call GetDimension() to determine whether the points were collinear, or all the same point
| Name | Solve |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexHull2.h |
| Include Path | #include "CompGeom/ConvexHull2.h" |
bool Solve
(
TArrayView < const TVector2 < RealType > > Points,
TFunctionRef < bool> FilterFunc
)
true if hull was generated, false if points span < 2 dimensions
Parameters
| Name | Remarks |
|---|---|
| Points | Array of points to consider |
| Filter | Optional filter to include only a subset of the points in the output hull |
Solve(int32, TFunctionRef< TVector2< RealType >(int32)>, TFunctionRef< bool(int32)>)
Description
Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call GetDimension() to determine whether the points were collinear, or all the same point
| Name | Solve |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexHull2.h |
| Include Path | #include "CompGeom/ConvexHull2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/ConvexHull2.cpp |
bool Solve
(
int32 NumPoints,
TFunctionRef < TVector2 < RealType >> GetPointFunc,
TFunctionRef < bool> FilterFunc
)
true if hull was generated, false if points span < 2 dimensions
Parameters
| Name | Remarks |
|---|---|
| NumPoints | Number of points to consider |
| GetPointFunc | Function providing array-style access into points |
| FilterFunc | Optional filter to include only a subset of the points in the output hull |