Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LuxCoreRender/LuxCore
/ Mod
Function
Mod
include/luxrays/utils/utils.h:174–183 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
172
}
173
174
template<class T> inline T Mod(T a, T b) {
175
if (b == 0)
176
b = 1;
177
178
a %= b;
179
if (a < 0)
180
a += b;
181
182
return a;
183
}
184
185
inline float Radians(float deg) {
186
return (M_PI / 180.f) * deg;
Callers
1
GetSpectrumValue
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected