FVector::GenerateClusterCenters

Given a current set of cluster centers, a set of points, iterate N times to move clusters to be central.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector.h

Include

#include "Math/Vector.h"

Source

/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp

Syntax

static void GenerateClusterCenters
(
    TArray< FVector > & Clusters,
    const TArray< FVector > & Points,
    int32 NumIterations,
    int32 NumConnectionsToBeValid
)

Remarks

Given a current set of cluster centers, a set of points, iterate N times to move clusters to be central.

Parameters

Parameter

Description

Clusters

Reference to array of Clusters.

Points

Set of points.

NumIterations

Number of iterations.

NumConnectionsToBeValid

Sometimes you will have long strings that come off the mass of points which happen to have been chosen as Cluster starting points. You want to be able to disregard those.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss