MCPcopy Create free account
hub / github.com/RozDavid/UnScene3D / normalize

Method normalize

utils/cpp_utils/include/vec3.h:235–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 static inline vec3<T> normalize(const vec3<T> &v) {
236 return v.getNormalized();
237 }
238
239 inline void normalize() {
240 T val = (T) 1.0 / length();

Callers 3

feature_simFunction · 0.80
get_affinity_matrixFunction · 0.80
whiten_featsFunction · 0.80

Calls 2

lengthFunction · 0.85
getNormalizedMethod · 0.80

Tested by

no test coverage detected