MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / apply

Method apply

src/python/PyImath/PyImathFunOperators.h:235–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233struct gain_op
234{
235 static inline float
236 apply(float x, float g)
237 {
238 if (x < 0.5f)
239 return 0.5f*bias_op::apply(2.0f*x, 1.0f - g);
240 else
241 return 1.0f - 0.5f*bias_op::apply(2.0f - 2.0f*x, 1.0f - g);
242 }
243};
244
245template <class T>

Callers

nothing calls this directly

Calls 1

applyClass · 0.85

Tested by

no test coverage detected