sampler

fun sampler(normalized: Boolean = false): (Double) -> Double(source)

Creates a function to sample the FCurve at a specific time.

Return

A lambda function that takes a Double representing the time and returns a Double corresponding to the sampled value from the FCurve at that specific time.

Parameters

normalized

Specifies whether the sampling is normalized to the range 0, 1. If true, the time parameter will be scaled to the duration of the curve. If false, the raw time parameter is used directly.