MCPcopy Create free account
hub / github.com/NatronGitHub/openfx-misc / rampSmooth

Function rampSmooth

Rectangle/Rectangle.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163};
164
165static inline
166double
167rampSmooth(double t)
168{
169 t *= 2.;
170 if (t < 1) {
171 return t * t / (2.);
172 } else {
173 t -= 1.;
174
175 return -0.5 * (t * (t - 2) - 1);
176 }
177}
178
179class RectangleProcessorBase
180 : public ImageProcessor

Callers 1

processMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected