zng_var::types

Function slerp_enabled

source
pub fn slerp_enabled<R>(enabled: bool, f: impl FnOnce() -> R) -> R
Expand description

Calls f with is_slerp_enabled set to enabled.

See slerp_sampler for a way to enable in animations.