Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RenderKit/ospray
/ uniformSampleRingPDF
Function
uniformSampleRingPDF
modules/cpu/math/sampling.h:22–25 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
20
}
21
22
inline float uniformSampleRingPDF(const float radius, const float innerRadius)
23
{
24
return rcp(float(pi) * ((radius * radius) - (innerRadius * innerRadius)));
25
}
26
27
} // namespace ospray
Callers
1
createSh
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected