MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / cubicDerive

Function cubicDerive

Engine/Interpolation.cpp:97–108  ·  view source on GitHub ↗

derive at t

Source from the content-addressed store, hash-verified

95
96// derive at t
97static double
98cubicDerive(double /*c0*/,
99 double c1,
100 double c2,
101 double c3,
102 double t)
103{
104 const double t2 = t * t;
105 assert(t == t && t2 == t2 && c1 == c1 && c2 == c2 && c3 == c3);
106
107 return c1 + (c2 ? 2 * c2 * t : 0.) + (c3 ? 3 * c3 * t2 : 0.);
108}
109
110#define EQN_EPS 1e-9
111

Callers 3

deriveMethod · 0.85
derive_clampMethod · 0.85
integrate_clampMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected