Skip to content

sampleKeyframes

sampleKeyframes(keys, at): number

Defined in: math/keyframes.ts:73

readonly Keyframe[]

number

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.

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.