Open 3D Engine MotionMatching Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
EMotionFX::MotionMatching::KdTree Class Reference

Public Member Functions

 AZ_RTTI (KdTree, "{CDA707EC-4150-463B-8157-90D98351ACED}")
 
bool Init (const FrameDatabase &frameDatabase, const FeatureMatrix &featureMatrix, const AZStd::vector< Feature * > &features, size_t maxDepth=10, size_t minFramesPerLeaf=1000)
 
void Clear ()
 
void PrintStats ()
 
size_t GetNumNodes () const
 
size_t GetNumDimensions () const
 
size_t CalcMemoryUsageInBytes () const
 
bool IsInitialized () const
 
void FindNearestNeighbors (const AZStd::vector< float > &frameFloats, AZStd::vector< size_t > &resultFrameIndices) const
 

Static Public Member Functions

static size_t CalcNumDimensions (const AZStd::vector< Feature * > &features)
 

Public Attributes

 AZ_CLASS_ALLOCATOR_DECL
 

Member Function Documentation

◆ CalcNumDimensions()

static size_t EMotionFX::MotionMatching::KdTree::CalcNumDimensions ( const AZStd::vector< Feature * > &  features)
static

Calculate the number of dimensions or values for the given feature set. Each feature might store one or multiple values inside the feature matrix and the number of values each feature holds varies with the feature type. This calculates the sum of the number of values of the given feature set.


The documentation for this class was generated from the following file: