MCPcopy Create free account
hub / github.com/carbonengine/trinity / CubicInterpolate

Function CubicInterpolate

trinity/TriMath.cpp:963–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963float CubicInterpolate( float pm1, float p0, float p1, float p2, float s )
964{
965 return p0 + 0.5f * s * ( p1 - pm1 + s * ( 2.f * pm1 - 5.f * p0 + 4.f * p1 - p2 + s * ( 3.f * ( p0 - p1 ) + p2 - pm1 ) ) );
966}
967
968/////////////////////////////////////////////////////////////////////////////////////////
969// random functions

Callers 1

CreateFromHeightDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected