Core · function

curveOffsetSec

Source seconds elapsed by localSec into the curve.

Explained in The loop.

function curveOffsetSec(curve: TimeCurve, localSec: number): number
import { curveOffsetSec } from '@driftengine/core';

Parameters

ParameterTypeDescription
curveTimeCurve
localSecnumber

In depth

Monotonically non-decreasing for every kind except reverse, continuous everywhere, and clamped to the segment — outside it, the neighbouring segments own the clock.