Core · function

curveSpanSec

Source seconds a whole segment consumes — durationSec for every kind, and worth asking for rather than assuming: a caller composing segments needs the answer the curve actually gives, not the one it promises.

Explained in The loop.

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

Parameters

ParameterTypeDescription
curveTimeCurve