MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / Average

Function Average

openpgl/include/openpgl/cpp/Common.h:259–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259OPENPGL_INLINE float Average(const pgl_vec3f &vec)
260{
261 return (vec.x + vec.y + vec.z) / 3.f;
262}
263
264OPENPGL_INLINE float Average(const pgl_vec2f &vec)
265{

Callers 1

GuidedRussianRouletteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected