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

Method norm

lib/vqf/basicvqf.cpp:273–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273vqf_real_t BasicVQF::norm(const vqf_real_t vec[], size_t N)
274{
275 vqf_real_t s = 0;
276 for(size_t i = 0; i < N; i++) {
277 s += vec[i]*vec[i];
278 }
279 return sqrt(s);
280}
281
282void BasicVQF::normalize(vqf_real_t vec[], size_t N)
283{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected