![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <VectorSetAnalysis.h>
Public Member Functions | |
| template<typename EnumerableIDType > | |
| void | Initialize (EnumerableIDType EnumerableIDs, TFunctionRef< TVector< RealType >(int32)> GetVectorFunc, int32 NumVectorsHint=0, bool bIsNormalizedHint=false) |
| int32 | NumVectors () const |
| int32 | NumClusters () const |
| void | GreedyClusterVectors (RealType AngleToleranceDeg) |
Public Attributes | |
| TArray< TVector< RealType > > | Vectors |
| TArray< int32 > | VectorIDs |
| bool | bNormalized = false |
| TArray< TVector< RealType > > | ClusterVectors |
| TArray< int32 > | VectorToClusterMap |
TVectorSetAnalysis3 computes various analyses of a set of input Vectors (currently mainly clustering.
|
inline |
Run simple greedy clustering algorithm on input ClusterVectors. Done in a single pass over vectors, each successive Vector is either grouped with one of the existing clusters if it's direction is within AngleToleranceDeg, or creates a new cluster.
|
inline |
Initialize the internal set of Vectors and IDs using an external integer-Enumerable and associated GetVector(ID) function
| NumVectorsHint | provide hint as to number of elements in Enumerable, to allow memory to be pre-allocated |
| bIsNormalizedHint | indicate whether vectors are normalized |
|
inline |
|
inline |
| bool UE::Geometry::TVectorSetAnalysis3< RealType >::bNormalized = false |
| TArray<TVector<RealType> > UE::Geometry::TVectorSetAnalysis3< RealType >::ClusterVectors |
Set of vectors that represent centers of clusters
| TArray<int32> UE::Geometry::TVectorSetAnalysis3< RealType >::VectorIDs |
| TArray<TVector<RealType> > UE::Geometry::TVectorSetAnalysis3< RealType >::Vectors |
| TArray<int32> UE::Geometry::TVectorSetAnalysis3< RealType >::VectorToClusterMap |
Mapping from Vector index to ClusterVectors index