getCubicLagrCoeffs

Returns the Cubic Lagrange coefficients for positions -1, 0, 1, 2.

  1. float[4] getCubicLagrCoeffs(float x, float[4] x_n)
  2. float[4] getCubicLagrCoeffs(float x)
    @nogc nothrow pure @safe
    float[4]
    getCubicLagrCoeffs
    (
    float x
    )

Parameters

x float

position ideally between 0 and 1

Return Value

Type: float[4]

an array with the coefficients.

Meta