Chalkboard - v3.0.4
    Preparing search index...

    Function at

    • Samples a solution at a time using linear interpolation between the nearest grid points. (No extrapolation as it clamps to endpoints.)

      Parameters

      • sol: { t: number[]; y: number[][] }

        The solution.

      • time: number

        The time to sample at.

      Returns number[]

      const result = Chalkboard.diff.at({ t: [0, 1, 2], y: [[0], [1], [4]] }, 1.5); // Interpolates the solution at t = 1.5