MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetWeights

Method GetWeights

GTE/Graphics/MorphController.cpp:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void MorphController::GetWeights(size_t key, std::vector<float>& weights)
67{
68 LogAssert(key < mNumTimes, "Invalid key.");
69 weights.resize(mNumTargets);
70 auto begin = mWeights.begin() + key * mNumTargets;
71 auto end = begin + mNumTargets;
72 std::copy(begin, end, weights.begin());
73}
74
75bool MorphController::Update(double applicationTime)
76{

Callers 1

LoadSkinControllerMethod · 0.45

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected