Function

compareRational

Compares two rational timeline times.

Signature

Type Definition
compareRational(a: RationalTime, b: RationalTime): number

Parameters

NameTypeDescription
aRationalTimeFirst rational time.
bRationalTimeSecond rational time.

Returns

number

A positive value when `a` is later, a negative value when `b` is later, and zero when equal.