MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / VecContainsOne

Function VecContainsOne

src/OpenColorIO/MathUtils.cpp:109–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool VecContainsOne(const float* v, int size)
110{
111 for(int i=0; i<size; ++i)
112 {
113 if(IsScalarEqualToOne(v[i])) return true;
114 }
115 return false;
116}
117
118double ClampToNormHalf(double val)
119{

Callers

nothing calls this directly

Calls 1

IsScalarEqualToOneFunction · 0.85

Tested by

no test coverage detected