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

Method getNormalized

utils/cpp_utils/include/vec3.h:256–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 inline vec3<T> getNormalized() const {
257 T val = (T) 1.0 / length();
258 return vec3<T>(array[0] * val, array[1] * val, array[2] * val);
259 }
260
261 // returns the angle between two vectors *in degrees*
262 static T angleBetween(const vec3<T> &v0, const vec3<T> &v1) {

Callers 2

normalizeMethod · 0.80
triangleNormalFunction · 0.80

Calls 1

lengthFunction · 0.85

Tested by

no test coverage detected