MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / normalize

Method normalize

applications/_libs/cmp_mesh/triorder.cpp:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 return w > 0.f ? sqrtf(w) : 0.f;
165 }
166 void normalize()
167 {
168 float w = v[0] * v[0] + v[1] * v[1] + v[2] * v[2];
169 if (w > 0.f)
170 {
171 *this /= sqrtf(w);
172 }
173 }
174};
175
176static float dot(const Vector a, const Vector b)

Callers 2

OverdrawOrderFunction · 0.45
OverdrawOrderIntegralFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected