sampleKeyframes
sampleKeyframes(
keys,at):number
Defined in: math/keyframes.ts:73
Parameters
Section titled “Parameters”readonly Keyframe[]
number
Returns
Section titled “Returns”number
The value
keys hold at
at. Endpoints CLAMP — a curve states what it states and nothing beyond, which is what lets a caller sample any time.
Details
Section titled “Details”Keys are expected in ascending time; an empty curve is 0 and a single key is that key everywhere. Hermite is the default: a key states tangents, so ignoring them would be a silent straight line.