MCPcopy Create free account
hub / github.com/SlimeVR/SlimeVR-Tracker-ESP / normalize

Method normalize

lib/vqf/basicvqf.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void BasicVQF::normalize(vqf_real_t vec[], size_t N)
283{
284 vqf_real_t n = norm(vec, N);
285 if (n < EPS) {
286 return;
287 }
288 for(size_t i = 0; i < N; i++) {
289 vec[i] /= n;
290 }
291}
292
293void BasicVQF::clip(vqf_real_t vec[], size_t N, vqf_real_t min, vqf_real_t max)
294{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected