MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / Float2Int

Function Float2Int

include/luxrays/utils/utils.h:239–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239template<class T> inline int Float2Int(T val) {
240 return static_cast<int>(val);
241}
242
243template<class T> inline unsigned int Float2UInt(T val) {
244 return val >= 0 ? static_cast<unsigned int>(val) : 0;

Callers 1

HashMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected