Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
259
OPENPGL_INLINE float Average(const pgl_vec3f &vec)
260
{
261
return (vec.x + vec.y + vec.z) / 3.f;
262
}
263
264
OPENPGL_INLINE float Average(const pgl_vec2f &vec)
265
{
Callers
1
GuidedRussianRoulette
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected